$sql=“UPDATE user SET age=age+10 WHERE id=12;”;
$sql.=“DELETE FROM user WHERE id=13”;
$res=$mysqli_multi_query($link,$sql);
var_dump($res);
echo ‘<hr/>’;
这里错了 多一个 $res=$mysqli_multi_query($link,$sql); $
$sql.=“DELETE FROM user WHERE id=13”;
$res=$mysqli_multi_query($link,$sql);
var_dump($res);
echo ‘<hr/>’;
这里错了 多一个 $res=$mysqli_multi_query($link,$sql); $
2016-10-20
Notice: Object of class mysqli_result could not be converted to int
???
???
2016-10-10