Hi, I'm working on a counter.
I want the MySQL database to count rows with a specific content and then the number should be printed on the page.
My problem now is that I'm not very good with MySQL commands, so I don't know what command I have to use for counting rows.
I would be pleased for every suggestion.
Counting Data
Moderator: General Moderators
Counting stuff
It should be count(). Check the manual at mysql.com/doc. However, it should be as simple as
into the ballpark.
Later on,
Big Din K.R.
You could also run the query and use the mysql_num_rows() function. Both should get youselect count(*) as total from table_name where something = something_else
into the ballpark.
Later on,
Big Din K.R.