请看PHP代码:
$val = $_POST['name'];
$stmt = $mysqli->stmt_init();
$stmt->prepare("SELECT id, name, email FROM some_table WHERE name LIKE ?%");
$stmt->bind_param('s', $val);
$stmt->execute();
当我运行此查询时;我收到以下错误:警告:mysqli_stmt::bind_param(): invalid object or resource mysqli_stmt
这里有什么问题?