到目前为止,我的代码给出array(1) { [0]=> object(stdClass)#166 (1) { ["id"]=> string(2) "92" }}
了以下结果,但是我必须做些什么才能使我能够通过它使用它mysqli_num_rows
?
代码:
$query = $this->db->query("SELECT `id` FROM $table WHERE $table.id ='$product_id'");
$result = $query->result();