I'm trying to get the number of images in each gallery by using the below query in a foreach statement
$total = $connect->query("SELECT COUNT(*) FROM photos WHERE gallery = '$row[id]'");
To print this out I'm then using $total[0] which returns Array - how do I retrieve the number?
echo '<pre>'.print_r($total,true).'</pre>';look like?