mysql_error()返回空白但是while抛出了一个错误,要求输入资源而不是布尔值。可能是什么原因?
$query2 = "SELECT song FROM songs where id like '$lastComparison[$sg]'";
$results = mysql_query($query2,$link2);
error_log(mysql_error());
while ($rows2 = mysql_fetch_assoc($results)){
$lastComparison[$sg] = $rows2['song_title'];
}