$mysqli = new mysqli("localhost", $musername, $mpass, $mdatabase);
if ($mysqli->connect_errno) {
printf("Connect failed: %s\n", $mysqli->connect_error);
exit();
}
$sqquer = $mysqli->prepare('SELECT * FROM ? where id=?');
$sqquer->bind_param('is', $mtable, $_SESSION['User']['id']);
if ($sqquer==false) {
echo "fail";
}
echo "<br>Test 2";
$sqquer->execute();
echo "<br>Test 3";
$sqquer->store_result();
这不输出任何测试。我错过了什么?我试过改变参数功能但没有成功,我相信我错过了一些微不足道的事情。
答案 0 :(得分:1)
您确定启用了mysqli吗?
检查php.ini并取消注释(即删除;)这一行......
;mysqli.dll
要...
mysqli.dll (mysqli.so on linux)