I have many tables in my MYSQL database. I want to be able to echo the total number of all the rows in a database.
So basically I want to have it so the circled sum in the image below is echoed in PHP. 
This is my current code for just displaying the total rows from one table ($txid). I have tried replaced $txid with * but it doesnt work. Any help is greatly appreciated. Thanks.
mysql_select_db($dbname); $result = mysql_query("select count(1) FROM $txid"); $row = mysql_fetch_array($result); $total = $row[0]; echo $total; ?>