If I have this:
$results = mysql_query("SELECT * FROM table_name WHERE id=$id");
Is there a way to check how many rows the Private or Company fields value?
I need to show the user how many "Private" and "Company" records were found without making another request. (There is a column named "ad_type" that contains either "Private" or "company")
I already know mysql_num_rows for counting all rows!
EDIT: There are 500 thousand records! So maybe the iteration as a result is slow, what do you think?
Thanks for the help:)
user188962
source
share