0
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);

The error it's giving me is mysqli_fetch_array() expects parameter 1 to be mysqli_result, object given Everywhere I look it tells me it's because of null variables, but printing $name out tells me that it's NOT null! I'm totally lost!

Rhododendron
  • 123
  • 9

0 Answers0