准备并执行 SQL 语句

警告

Prepared 语句不关心表名的 wild 参数。例如,以下陈述不正确:

$query = "SELECT name, city FROM ? WHERE id = ? AND country = ?";

正确的准备查询将是:

$query = "SELECT name, city FROM users WHERE id = ? AND country = ?";