由于某些未知原因,我的代码似乎无法正常工作。我已经检查了所有谷歌,但似乎没有其他人有同样的问题。这可能是PHP的错误吗?
我得到的错误:
Warning: mysqli_stmt::bind_param() [mysqli-stmt.bind-param]: Number of variables doesn't match number of parameters in prepared statement in /home/a9684274/public_html/system/db.php on line 102
编码:
$stmt = $mysqli->prepare("SELECT * FROM users WHERE username='?'")
$name = "Vilsol";
$stmt->bind_param("s", $name);
提前致谢!