Ich versuche eine Dummy-Anmeldeseite als Übung zu erstellen. Ich erhalte diese Fehlermeldung:Fehler: Aufruf zu undefinierter Methode mysqli_result :: fetch_both()
Call to undefined method mysqli_result::fetch_both()
Code:
<?php
if (isset($_POST['LOGIN'])){
$EMAIL = $_POST['loginusernameinput'];
$PASS = $_POST['loginpasswordinput'];
$result = $conn->query("SELECT * FROM userinformationtbl WHERE Email ='$EMAIL' AND password ='$PASS'");
$row = $result -> fetch_both(MYSQLI_BOTH);
session_start();
$_SESSION["userID"] = $row["userID"];
header ('location: account.php');
}
?>
Willkommen bei SO. Besuchen Sie: http://stackoverflow.com/help/how-to-ask, um zu erfahren, wie Sie Ihrer Frage die richtigen Titel geben können. – Shaishav
Code-Format, Ausnahmeformat, Grammatik und Titel –