I'm just coding some stuff in PHP and MySQL.
I have multiple rows with a row called "total", inside total theres a number (can be different to every post)
In my php file i want to make a mysql output that takes only from the row "total" and count it all together.
Example: Inside the row "total" i have two post. The first with 15 and the second with 3.
Then it should post in my php file: 18.
I tried using this code:
Code: Select all
<? $query = mysql_query("SELECT * from total"); echo mysql_num_rows($query); ?>Frustrated
Thanks for the help guys...