Warning: mysqli_error() expects exactly 1 parameter, 0 given error

后端 未结 4 1605
夕颜
夕颜 2020-11-27 19:58

I get the following error

Warning: mysqli_error() expects exactly 1 parameter, 0 given

The problem is with this line of the c

4条回答
  •  清酒与你
    2020-11-27 20:21

    Change

    die (mysqli_error()); 
    

    to

    die('Error: ' . mysqli_error($myConnection));
    

    in the query

    $query = mysqli_query($myConnection, $sqlCommand) or die (mysqli_error()); 
    

提交回复
热议问题