我从数据库中获取这些数据,但我总是有这样的错误: Fatal error: Uncaught Error: Call to a member function prepare() on null infunctions.php的一部分 private function getInformazioni($id) { $stmt = $this->$_db->prepare'];
$_SESSION['surname'] = $row
我一直在犯这个错误。奇怪的是,到目前为止,我在其他两个地方使用了相同的代码,没有任何问题。我在这里所做的就是重用代码并更改所有变量。Fatal error: Call to a member function prepare() on null <?php
public function fetch_all() {
$query = $pdo->preparef