COUNT returning array?
I'm trying to get the number of images in each gallery by using the below
query in a
$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?
No comments:
Post a Comment