我正在尝试运行以下代码:
if ($result = $mysqli->query($query)) {
/* fetch object array */
while ($row = $result->fetch_row()) {
$query = "INSERT INTO Table2 SELECT s.* FROM Table1 s WHERE id=" . $row[1] . ";"
$mysqli->query($query);
$query = "DELETE FROM Table1 WHERE id=" . $row[1] . ";"
$mysqli->query($query);
}
/* free result set */
$result->close();
}
但它正在回归:
$mysqli->query($query);
有谁知道它可能是什么?
解析错误:语法错误,意外的 T_VARIABLE ...