I'm using table1 table2 table3 etc..
what i want is to count all rows called 'pic'
I'm currently using this soulution
$result = mysql_query("SELECT pic FROM table1 UNION ALL SELECT pic FROM table2 UNION ALL SELECT pic FROM table3");
$num_rows = mysql_num_rows($result);
echo"$num_rows";
this way are getting to advanced to use when theres beeing added more tables.
I'm wondering if theres a way like the one underneath that will work.. (i know the one underneath wont work, just use it to state a example) without doing a loop or something advanced 😉
$result = mysql_query("SELECT pic FROM `album*`");
Thanks in advance