SQL error function
Title
Question
when running the function mysqli_error() giving error of argument when using with die function
PHP-and-MySQL MySQL-Part-2 05-06 min 10-20 sec
Answers:
Dear User,
mysqli_error() function needs you to pass the connection to the database as a parameter.
Change
die(mysqli_error());
to
die(mysqli_error($connect));
Login to add comment