+ 1

How to solve this php error?

Notice: Undefined variable: mysqli in C:\xampp\htdocs\TSK\amount.php on line 30 Warning: mysqli_query() expects parameter 1 to be mysqli, null given in C:\xampp\htdocs\TSK\amount.php on line 30 Failed Line 30: $result=mysqli_query($mysqli,"INSERT into amount values('$SENDER_Name','$RECIVER_Name','$Amount')");

23rd Sep 2021, 11:38 AM
Shweta
Shweta - avatar
1 Réponse
0
You should define mysqli variable at first and then use that. Use mysqli_connect function for mysqli declaration.
23rd Sep 2021, 1:08 PM
GHOST mHBr
GHOST mHBr - avatar