Re: [PHP-DB] LIMIT and get_num_rows

2002-01-14 Thread Jason Wong
On Monday 14 January 2002 19:21, Markus Lervik wrote: > Damnit. > Forgot to cc to the list, again. Here it is. > > -- Forwarded Message -- > > On Monday 14 January 2002 12:55, you wrote: > > hi guys, just looking for verification on this, as i don't think there's > > any way to

Re: [PHP-DB] LIMIT and get_num_rows

2002-01-14 Thread Markus Lervik
Damnit. Forgot to cc to the list, again. Here it is. -- Forwarded Message -- On Monday 14 January 2002 12:55, you wrote: > hi guys, just looking for verification on this, as i don't think there's > any way to do it > > Basically, i want to return the results for a search,

Re: [PHP-DB] LIMIT and get_num_rows

2002-01-14 Thread Jason Wong
On Monday 14 January 2002 19:06, matt stewart wrote: > but presumably if i'm doing a SELECT count(*) FROM Designs WHERE Keywords > LIKE "%sport%" > followed by a SELECT * FROM Designs WHERE Keywords LIKE "%sport%" LIMIT > 0,20 > > it's still using nearly as much processing time as just returning a

RE: [PHP-DB] LIMIT and get_num_rows

2002-01-14 Thread matt stewart
g a get_num_rows and then only using the first 20? -Original Message- From: Jonatan Bagge [mailto:[EMAIL PROTECTED]] Sent: 14 January 2002 11:00 To: matt stewart Subject: Re: [PHP-DB] LIMIT and get_num_rows First do a SELECT count(*) from tablename; This will get the number of entries.