RE: [phpXperts] No Warping in results [1 Attachment]

RE: [phpXperts] No Warping in results [1 Attachment]

am 23.07.2010 07:35:03 von Chaitanya

------=_NextPart_000_000D_01CB2A56.EADA7310
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Guru,

Why do you want to show all page numbers within the page. You can apply a
break and use like Prev and Next links after showing 10th link which is
similar to 1,2,3,4,5,6,7, ...... , etc. There are many scripts
availabe on net on pagination functions. You can google on it.

Chaitanya.


--
Thanks,
Chaitanya.


_____

From: phpexperts@yahoogroups.com [mailto:phpexperts@yahoogroups.com] On
Behalf Of nagendra prasad
Sent: Thursday, July 22, 2010 8:14 PM
To: phpexperts@yahoogroups.com; PHP DB; php-windows@lists.php.net; php mysql
Subject: [phpXperts] No Warping in results [1 Attachment]



[Attachment(s) <> from nagendra prasad included below]

Hi All,

I have a code which will shows the mysql data in a page. When the data is
less its working fine however when the data is huge let say more then 10
thousand the page numbers are not warping. Its going beyond the page. I
have attached the result page image as well.
Below is the code of page navigation.


************************************************************ ****************
*****************************************



{
?>

cellpadding="4">

1) { ?>


global $pagerange;

if ($pagecount > 1) {

if ($pagecount % $pagerange != 0) {
$rangecount = intval($pagecount / $pagerange) + 1;
}
else {
$rangecount = intval($pagecount / $pagerange);
}
for ($i = 1; $i < $rangecount + 1; $i++) {
$startpage = (($i - 1) * $pagerange) + 1;
$count = min($i * $pagerange, $pagecount);

if ((($page >= $startpage) && ($page <= ($i * $pagerange)))) {
for ($j = $startpage; $j < $count + 1; $j++) {
if ($j == $page) {
?>











<< Prev  ..."..." .$count ?>
 Next >> 



{
?>



0) { ?>










**********************************************

Please help me with this.

Best,
Guru.


__._,_.___
Attachment(s) from nagendra prasad

1 of 1 Photo(s)


17124914/view> result page.jpg
result
17124914/view> page.jpg
Reply to
sender | Reply to results> group | Reply
MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARtc2dJ ZAMxMzczNQRzZWMD
ZnRyBHNsawNycGx5BHN0aW1lAzEyNzk4MTM2MTM-?act=reply&messageNu m=13735> via web
post | Start
MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMD ZnRyBHNsawNudHBj
BHN0aW1lAzEyNzk4MTM2MTM-> a New Topic
Messages
0BF9TAzk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc 2NARtc2dJZAMxMzc
zNQRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyNzk4MTM2MTMEdHBjSWQDMTM 3MzU-> in this
topic (1)
Recent Activity:

* New
zk3MzU5NzE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZ WMDdnRsBHNsawN2b
WJycwRzdGltZQMxMjc5ODEzNjEz?o=6> Members 2

Visit
zE0BGdycElkAzEzODc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDdnRsB HNsawN2Z2hwBHN0a
W1lAzEyNzk4MTM2MTM-> Your Group
Visit phpXperts website at www.phpxperts.net
MARKETPLACE

Stay
=groups/S=1705006764:MKP1/Y=YAHOO/EXP=1279820814/L=5a480dea- 95a8-11df-a5ee-e
ff6624bf90c/B=LTh5AmKImiI-/J=1279813614619203/K=f7T7XCPBVioM 6wGkNaT5Vw/A=606
0255/R=0/SIG=1194m4keh/*http://us.toolbar.yahoo.com/?.cpdl=g rpj> on top of
your group activity without leaving the page you're on - Get the Yahoo!
Toolbar now.


_____


Get
=groups/S=1705006764:MKP1/Y=YAHOO/EXP=1279820814/L=5a480dea- 95a8-11df-a5ee-e
ff6624bf90c/B=Ljh5AmKImiI-/J=1279813614619203/K=f7T7XCPBVioM 6wGkNaT5Vw/A=607
8812/R=0/SIG=114ae4ln1/*http://dogandcatanswers.yahoo.com/> great advice
about dogs and cats. Visit the Dog & Cat Answers Center.


_____


Hobbies
=groups/S=1705006764:MKP1/Y=YAHOO/EXP=1279820814/L=5a480dea- 95a8-11df-a5ee-e
ff6624bf90c/B=Lzh5AmKImiI-/J=1279813614619203/K=f7T7XCPBVioM 6wGkNaT5Vw/A=601
5306/R=0/SIG=11vlkvigg/*http://advision.webevents.yahoo.com/ hobbiesandactivi
tieszone/> & Activities Zone: Find others who share your passions! Explore
new interests.



Dc3MTg3BGdycHNwSWQDMTcwNTAwNjc2NARzZWMDZnRyBHNsawNnZnAEc3Rpb WUDMTI3OTgxMzYxM
w--> Yahoo! Groups
Switch to: Text-Only
Format: Traditional> , Daily

Digest . Unsubscribe
. Terms
of Use
...

d=13735/stime=1279813613/nc1=6083913/nc2=4507179/nc3=3848642 >

__,_._,___


__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5152 (20100528) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


------=_NextPart_000_000D_01CB2A56.EADA7310--