📜  php mysql 准备查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:58.740000             🧑  作者: Mango

代码示例1
$stmt = $mysqli->prepare("SELECT * FROM myTable WHERE name = ? AND age = ?");
$stmt->bind_param("si", $_POST['name'], $_POST['age']);
$stmt->execute();
$stmt->close();