| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #3 (permalink) |
| Senior Member Join Date: Aug 2004 Location: Washington
Posts: 4,324
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Its simple Ronaldo use $_GET['page'] and then divide pages based on the number of rows fetched divided by 10 use it as hyperlink and there you go.!!
__________________ Download youtube videos at www.HugYouTube.com -NO LINKS TO PARKED PAGES- Anonymous access at www.Banned.net |
| |
| | #5 (permalink) |
| Domains my Dominion Join Date: Aug 2005 Location: Web 1.0
Posts: 9,963
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Basically you need the LIMIT clause if you are pulling results from a mySQL DB. For example to display page 1 you need a query like PHP Code: then for page 2 PHP Code:
__________________ NameNewsletter.com - free lists of available domain names ZoneFiles.net (beta) - ccTLD and gTLD droplists |
| |
| | #9 (permalink) |
| NamePros Regular Join Date: Jul 2004 Location: Seattle, Wa
Posts: 596
![]() ![]() ![]() | It's called pagination...here is a link to a tutorial you can use... http://www.phpfreaks.com/tutorials/43/0.php I used the same tutorial my first time..Good luck. |
| |
| | THREAD STARTER #10 (permalink) |
| Account Suspended Join Date: May 2005 Location: Huddersfield, England
Posts: 179
![]() | Im not that new to PHP just... "Pagination" I'll look at this tommorrow ![]() EDIT: What don't I need in this code? PHP Code:
Last edited by J_Ronaldo_19; 02-19-2006 at 01:41 PM.
|
| |
| | #12 (permalink) |
| Tech Support Join Date: Mar 2005
Posts: 4,944
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Yep..... however, there are "easier" ways to do this with much less code ... such as PHP Code: |
| |
| | THREAD STARTER #13 (permalink) |
| Account Suspended Join Date: May 2005 Location: Huddersfield, England
Posts: 179
![]() | I have all the query results set out all I need is to group it, is that the code. EDIT: PHP Code: Thats what I have and all it gives me is a blank screen :S
Last edited by J_Ronaldo_19; 02-20-2006 at 09:14 AM.
|
| |
| | #21 (permalink) | ||||
| NamePros Regular Join Date: Feb 2006 Location: Montreal, Quebec, Canada
Posts: 324
![]() |
J_Ronaldo_19: go to pear.php.net and read up a little. If you need help with specific things I can try. | ||||
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Great Scripts for Sale With Resale Rights! | Zeeble | Scripts For Sale | 20 | 01-04-2006 01:39 AM |
| Googlism - What does google think of you? | deadserious | The Break Room | 55 | 12-15-2005 09:09 AM |