connect_error) {
die('Connect Error (' . $mysqli->connect_errno . ') ' . $mysqli->connect_error);
}
$sql = "UPDATE users SET status = 1 WHERE id = 123";
$mysqli->query($sql);
$affectedRows = $mysqli->affected_rows;
echo '受影响的行数为:' . $affectedRows;
?>
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-