hello. i was wondering how a query for php / mysql would look like when i want to search trough all the rows in the collumn "views" on my table "users" in my database and add the numbers on every row together to a total and echo it out where i want it ? i hope someone can help me with this thanks in advance.
$query = mysql_query("SELECT SUM(views) AS total FROM table_name") OR die(mysql_error()); $count = mysql_fetch_assoc($query); echo $count['total']; PHP: