My PHP snippet does not work, var_dump(..) says bool(false) but the db is filled with 1 record. What am I doing wrong?
$sessionResultSet = mysql_query('select * from sessions');
My PHP snippet does not work, var_dump(..) says bool(false) but the db is filled with 1 record. What am I doing wrong?
$sessionResultSet = mysql_query('select * from sessions');
mysql_queryreturn false if you have an error in your SQL query.
echo mysql_error();
should fix that problem.