Hello!
Is it possible to get the total number of records when doing a select with
LIMIT?
For example, if I do:
SELECT * FROM tbl LIMIT 0,10
I would like to get the total number of records in tbl along with the 10
first ones..
I need this to display "showing 0 - 10 of 354", and my query is much more
complex so I dont wan't to make two queries:
SELECT COUNT(*) FROM tbl
SELECT * FROM tbl LIMIT 0,10
Thanks in advance!
/torgil
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php