This definitely isn't a "server side" error, this is a client scripting error. One thing I've found to get around this is not to just call die() when this happens, but actually create a function such as the one below (if you're using php) to tell you what's really going on:
function mail_sql_error ($error)
$adminemail = "";
$domain = ""
print "There was a problem with the query<br>";
print "This error has been mailed to our admin and will be addressed as soon as possible<br>";
print "The error: $error<br>";
$subj="MySQL error on $domain";
$email3="There is an sql error in the webpage.\nThe File called is :$filename\nThe Error is $error\nPlease resolve as quickly as possible";
mail($adminemail,$subj, $email3, "From: $adminemail\nX-Mailer: PHP/" . phpversion());
What I did was replace the die() calls after sql failure with that, which now lets me know what's going on with the page at any time. You're probably not going to get much more information as the error itself is already displayed, which is:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/autom1/public_html/lista_carros.php on line 57
So, take a look through that file, on line 57, or thereabouts. You'll find the error within 10 or so lines from there.
WHMCS Guru - WHMCS addons, management, support and more. WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
Anybody tell me how to find the php/mysql database ip of domain.. I have site www . spellfinder . com and my programmer asking it's database ip... I have search on cpanel , but couldnt find anything ... Plz help me to find it... thanks