1 is not a MySQL result index

wxdqz

New Member
Hello,

Here's the code:

$result = mysql_db_query($database, $query)
or die("Bad query: ".mysql_error());

$row = mysql_fetch_array($result)
or die("Bad fetch: ".mysql_error());

The error message is "1 is not a MySQL result index ". It's dying on the "$row = mysql_fetch_array($result)" line. I checked and the data is being inserted into the database. I'm stymied. Any help would be appreciated.

Thanks,
Chris
 
Back
Top