-1
Je le ci-dessous script phpappel d'erreur fatale à mysqli_stat_bind_param undefined function()
<?php
$con=mysqli_connect("localhost","root","");
if(!$con)
{
die('Could not connect'.mysqli_error());
}
mysqli_select_db($con,"mysql");
$username=$_POST["username"];
$password=$_POST["password"];
$statement=mysqli_prepare($con,"Select * from bbau_login where username=? and password=?");
mysqli_stat_bind_param($statement,$username,$pasword);
mysqli_stat_execute($statement);
mysqli_stat_store_result($statement);
mysqli_stat_bind_result($statement,$id,$name,$username,$password);
$user=array();
while(mysqli_stat_fetch($statement))
{
$user[name]=$name;
$user[username]=$username;
$user[password]=$password;
}
echo json_encode($user);
mysqli_stat_close($statement);
mysqli_close($con);
?>
Mais chaque fois que j'appelle script tis je reçois l'erreur comme appel d'erreur fatale à mysqli_stat_bind_param undefined function() S'il vous plaît aider à résoudre ceci