mysqli_fetch_array()期望参数1为mysqli_result,给定对象

时间:2013-05-09 01:08:56

标签: php mysql zend-framework xenforo

print_r($name);

$results = $db->query('
        SELECT `field_value`,`user_id`
        FROM `xf_user_field_value`
        WHERE field_value = "'.$name.'"
');

$storedtime = $db->query('
        SELECT `last_donation_date`
        FROM `merc_donor`
        WHERE last_donation_date = '.$time.'
');

$info = mysqli_fetch_array($results);

它给我的错误是mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given 无处不在我看它告诉我这是因为null变量,但打印$ name out告诉我它不是null!我完全失去了!

0 个答案:

没有答案