|
If you display all the results on the page, increase a variable every time you display a record.
If you display the results like a pagination, you need to have the query return your results and also the total number, or create another query for the total number of results.
|