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
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) { ?>
<< Prev
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) {
?>
..."..." .$count ?>
Next >>
{
?>
0) { ?>
**********************************************
Please help me with this.
Best,
Guru.
__._,_.___
Attachment(s) from nagendra prasad
1 of 1 Photo(s)
result
Reply to
sender | Reply to
ZnRyBHNsawNycGx5BHN0aW1lAzEyNzk4MTM2MTM-?act=reply&messageNu m=13735> via web
post | Start
BHN0aW1lAzEyNzk4MTM2MTM-> a New Topic
Messages
zNQRzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyNzk4MTM2MTMEdHBjSWQDMTM 3MzU-> in this
topic (1)
Recent Activity:
* New
WJycwRzdGltZQMxMjc5ODEzNjEz?o=6> Members 2
Visit
W1lAzEyNzk4MTM2MTM-> Your Group
Visit phpXperts website at www.phpxperts.net
MARKETPLACE
Stay
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
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
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.
w--> Yahoo! Groups
Switch to: Text-Only
Digest . Unsubscribe
of Use
...
__,_._,___
__________ 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--