Re: Want to exclude first 10 records from table
| From: | Jason Wong | Date: | Wed, 16 Oct 2002 07:23:56 +0000 |
| Subject: | Re: Want to exclude first 10 records from table | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120124@lists.php.net to get a copy of this message | ||
On Wednesday 16 October 2002 14:44, Manisha wrote:
> I am having forum table. First 10 records are treated as Current postings
> and rest are treated as Archive.
>
> I know how to take first 10
>
> select * from forum order by postdate desc LIMIT 10
>
> But I do not know how to take postings excluding above 10. I do not want to
> make use of loop rather I want to do this in one single query as I need to
> pass this to some further include files.
Use LIMIT -- rtfm for the database you're using for details.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
It's not hard to admit errors that are [only] cosmetically wrong.
-- J.K. Galbraith
*/