![]() |
How to list rows except first one ?
Hello, how can I list rows except first one ? Thank you.
|
If the array is numeric:
PHP Code:
|
Thanks. But I mean the mysql results. My query is this >
$query="select * from dle_post where $q ORDER BY id DESC limit 10"; I mean how to list items except first one... |
Then just pull the data normally and put in a numeric array. That way you can print off the array from the 2nd element.
PHP Code:
|
Sorry but can't understand. What you exactly mean ?
|
Is this what you want?
$query="select * from dle_post where $q ORDER BY id DESC limit 1, 10"; |
If its showing last 10 results except the first one, yes its is.
|
The limit on the end of the sql query keeps it from showing the first record because it's 1 instead of 0.
|
you can even
PHP Code:
|
| All times are GMT. The time now is 04:07 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0