help with mysql_num_rows syntax
Posted: Sat Aug 09, 2014 4:34 pm
Guys, help me out here!
Keep getting an error
Code: Select all
$rewards = $this->db->query(" SELECT customer_id, shipping_code FROM `" . DB_PREFIX . "order` WHERE customer_id = '" . (int)$data['customer_id'] . "' AND shipping_code = 'free.free'");
$previous_rewards = mysql_num_rows($rewards);
What am I doing wrong?Warning: mysql_num_rows() expects parameter 1 to be resource