|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
This seems KLUNKY
http://domestic-staffingtimes.com/Ecard/cardindex.php
I got my display system to work but the menthod i used to get there seems klunky what with having to "force" the system to run invisible fetches to set the starting point, image the grin that would put on a topic 200 items big and you viewing the last page? 150 fetches is kinda insane and id love help to stream line it. php Code:
|
|
#2
|
|||
|
|||
|
RE: This seems KLUNKY
i've probably misunderstood your question, but it sounds like you want pagination...
http://codewalkers.com/tutorials/4/1.html have a look at that. sorry if that wasn't at all helpful |
|
#3
|
|||
|
|||
|
RE: This seems KLUNKY
i have pagination working the problem i s that in order to set the start point i need to do a invisible fetch of my database array and ifi its a large one that a lot of fetching
|
|
#4
|
|||
|
|||
|
RE: This seems KLUNKY
|
|
#5
|
|||
|
|||
|
Message Moved
Thread moved from 'PHP Coding' to 'Programming Theory' by andrew.
Reason: |
|
#6
|
|||
|
|||
|
RE: This seems KLUNKY
i had to modify the code a bit to fit the rules of limit FYI its $result = mysql_query("SELECT * FROM cards LIMIT $start, $display"); not $result = mysql_query("SELECT * FROM cards LIMIT ".$start.", ".$display."); http://domestic-staffingtimes.com/Ecard/cardindex.php?page=2 however the limit works to well, when you click on another page it still uses the original limits, it does see mto update the limits for the next bock of data the second part seems to work displaying only $display values its the first part that seems to not work it seems to only start at page 1 php Code:
|