php - mysql_query(...) returns boolean value
564
My PHP snippet does not work,var_dump(..)
saysbool(false)
but the db is filled with 1 record. What am I doing wrong?
$sessionResultSet = mysql_query('select * from sessions');
Answer
Solution:
mysql_query
return false if you have an error in your SQL query.echo mysql_error();
should fix that problem.