请有人把我从这个燃烧的死亡坑中救出来。我真的把我的头发拉出来了。
错误:在第 8 行的路径中的非对象上调用成员函数 bind_param()
谢谢
<?php
include 'admin/db_connect.php';
$result;
$stmt = $mysqli->prepare("SELECT `latitude`,`longitude` FROM ? WHERE `route` = ?");
$stmt->bind_param('ss', $company, $route);
$company = $_GET['company'];
$company .= "_routes";
$route = $_GET['route'];
$stmt->execute();
$statement->bind_result($result);
printf($result);
?>
db_connect.php:
define("HOST", "");
define("USER", "");
define("PASSWORD", "");
define("DATABASE", "");
$mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE);