Would a num_rows function return just the # actually returned by the LIMIT clause or would it return the # that is covered under a WHERE clause?
| SitePoint Sponsor |


Would a num_rows function return just the # actually returned by the LIMIT clause or would it return the # that is covered under a WHERE clause?
num rows tells you how many rows were returned by the query....
LIMIT is part of the query and limits how many rows are returned.
James Rice :: Ex-Mentor
www.jamesrice.net


have a look at the FOUND_ROWS() function in 12.8.3 Information Functions

I always learn something from your posts, Rudy.![]()
John Conde | Facebook | Twitter
Brainyminds Merchant Account Services I Love Code eBook Giant
Authorize.Net: AIM API | ARB API | CIM API Get the FREE code!
Merchant Accounts 101 | Ecommerce 101
Bookmarks