$this->db->query("SELECT `id` FROM $table WHERE $table.id ='$product_id'");
应该返回92
但其返回下面为什么呢?
对象(CI_DB_mysqli_result)#150(8){[ “conn_id”] =>对象(mysqli的)#16 (18){[ “affected_rows”] => INT(1)[ “CLIENT_INFO”] => string(6)“5.5.30” [“client_version”] => int(50530)[“connect_errno”] => int(0) [“connect_error”] => NULL [“errno”] => int(0)[“error”] => string(0)“” [“field_count”] => int(1)[“host_info”] => string(25)“Localhost via UNIX socket”[“info “] => NULL [”insert_id“] => int(0)[”server_info“] => string(10)”5.5.31-cll“[”server_version“] => int(50531)[”stat“ ] => string(150)“正常运行时间:106781主题:14问题:30097132慢 查询:13打开:1937675刷新表:1打开表格:400查询 每秒平均值:281.858“[”sqlstate“] =>字符串(5)”00000“ [”protocol_version“] => int(10)[”thread_id“] => int (373292) [“warning_count”] => int(0)} [“result_id”] => object(mysqli_result)#161 (5){[“current_field”] => int(0)[“field_count”]] => int(1) [“result_array”] => array(0)=> int(1) [“length”] => NULL [“num_rows”] => int {“result_object”] => array(0){} [“custom_result_object”] => array(0){} [“current_row”] => int(0) [“num_rows”] => NULL [ “row_data”] => NULL}