當我開始我的腳本這個錯誤:PHP bind_param錯誤
Fatal error: Call to a member function bind_param() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/Jil/login_skript.php on line 16
下面是腳本:
$sql = "SELECT ID, vorname, nachname, username, email, passwort, profilBild, geschlecht, alter, wohnort, ueberSich FROM benutzer WHERE username LIKE '?' LIMIT 1;";
$stmt = $db->prepare($sql);
$stmt->bind_param("s", $username);
謝謝你是對的:) –
不客氣。 –