You would be correct. COUNT in SQL will count all the affected rows and return the number as your result.
If you need the query and number of items in a query, I am afraid we do not have enough information to help you. PHP talks to a lot of databases and there are different commands for different dbs. In the most popular one, MySQL, you would use mysql_num_rows();.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.