Jump to content

[SOLVED] Why does this not return an accurate number?


shaunrigby

Recommended Posts

Hi Guys,

 

I Have a Count query in my script, and for test purposes there are 4 rows in my table however the query is returning numItems - 1

 

$count = mysql_query("SELECT COUNT(*) AS numItems FROM gallery  WHERE `galleryid` = '" . $row['galleryid'] . "'")
             	or die("Error: " . mysql_error());

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.