Thierry888
Programmer
I am a newbie on forums, please forgive me any mistakes...
I'm trying to page through the data of a query.
I already know to first use ORDER BY to order the returned records.
I found how to use LIMIT x,y to get a specific part of the total query in the result set.
So far, so good...
And here it comes : how do I get the total number of records returned ? I mean by this the number of records the query would have returned without the LIMIT in place.
Base line is that I want to display a result like :
Records 1-10 from 5346
on the page, the only problem is getting the 5346 number out of the query...
Can anyone help ?
Greetz,
Thierry.
I'm trying to page through the data of a query.
I already know to first use ORDER BY to order the returned records.
I found how to use LIMIT x,y to get a specific part of the total query in the result set.
So far, so good...
And here it comes : how do I get the total number of records returned ? I mean by this the number of records the query would have returned without the LIMIT in place.
Base line is that I want to display a result like :
Records 1-10 from 5346
on the page, the only problem is getting the 5346 number out of the query...
Can anyone help ?
Greetz,
Thierry.