Answers for "Warning: mysqli_error() expects exactly 1 parameter, 0"

PHP
1

Warning: mysqli_error() expects exactly 1 parameter, 0

Change

die (mysqli_error()); 
to

die('Error: ' . mysqli_error($myConnection));
in the query

$query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error());
Posted by: Guest on August-26-2020

Code answers related to "Warning: mysqli_error() expects exactly 1 parameter, 0"

Browse Popular Code Answers by Language