$cat_insert=$mysqli->query("INSERT INTO tbl_category (service_name,isactive,isHome,image,order_id,footer_show) values ('$service_name','$isactive','$isHome','$filePath','$order_id',$footer_show)") or trigger_error(mysql_error());
echo $mysqli->error;
$row_cnt = $cat_insert->num_rows;
echo "Rows=$cat_rows";
答案 0 :(得分:0)
确保您的变量确实存在。另外,你的行数没有任何意义。您是否尝试获取最后一个插入ID?