Mysql Error: Query Was Empty
Can anyone tell me why I am getting this error when running my syntax Error: Query was empty Code: $con= mysql_connect('xxx','cl49-xxx','xxx'); if (!$con) { die('Could not conn
Solution 1:
In this query $sql is used but is is not defined anywhere in you code snippet.
if (!mysql_query($sql,$con)) {
die('Error: ' . mysql_error());
}
If you remove above code this message will not come again.
Post a Comment for "Mysql Error: Query Was Empty"