MySQL Forums
Forum List  »  PHP

undefined function mysqli_result()
Posted by: Kon Kom
Date: July 03, 2022 02:48PM

Hello I have problem and error:
Fatal error: Uncaught Error: Call to undefined function mysqli_result() in C:\xampp\htdocs\unity\odczytDanych.php:13 Stack trace: #0 {main} thrown in C:\xampp\htdocs\unity\odczytDanych.php on line 13

code:

<?PHP
$tabela = $_POST['tabela'];
$gracz = $_POST['gracz'];
$zmiennaIN = $_POST['zmienna'];


$con = mysqli_connect("localhost","root","") or ("Blad polaczenia: " . mysqli_error());
if (!$con)
die('Nie mozna polaczayc: ' . mysqli_error());

mysqli_select_db($con, "konta") or die ("Nie mozna wczytac bazy danych" . mysqli_error());

$zmiennaOUT = mysqli_result(mysqli_query($con, "SELECT '".$zmiennaIN."' FROM '".$tabela."' WHERE login='".$gracz."'"),0);
die ($zmiennaOUT);

?>

Options: ReplyQuote


Subject
Written By
Posted
undefined function mysqli_result()
July 03, 2022 02:48PM


Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.