我收到以下错误:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given
答案 0 :(得分:0)
$getholidays
不是getholidayrequest()
或
mysql_query() will also fail and return FALSE if the user does not have permission to access the table(s) referenced by the query
答案 1 :(得分:0)
你应该检查mysql_query返回值
$result = mysql_query('SELECT * WHERE 1=1');
if (!$result) {
die('Requête invalide : ' . mysql_error());
}