It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
![]() |
![]() |
|
LinkBack | Thread Tools | Display Modes | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 43
Posts: 9
|
Hi,
I have a query that I am using in a paginated page e.g. "select * from news" what I want to do is for the first page get the first 20 say and then for the second get from 21 to 40 and so on. Is this possible in the query? I can obviously code it up to do the logic in PHP but that’s going to be inefficient and people might laugh at me behind my back. Thanks, Hailey |
|
|
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Jul 2006
Age: 30
Posts: 258
|
here is a nice explanation:
PHP Code:
you can take a look at this link too: http://dev.mysql.com/doc/refman/5.0/en/select.html
__________________
-- iM |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SQL Query Correct? | gabriel | Site and Server Administration | 1 | 07-21-2006 08:01 AM |