$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();
这不会输出任何测试。我错过了什么?我尝试更改 param 函数但没有成功,我确信我错过了一些微不足道的东西。