Add a parameter expected by mysqli_error()
This commit is contained in:
parent
7847a66dce
commit
3b402605bc
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ $result = mysqli_query($link,$sql);
|
|||
// die if SQL statement failed
|
||||
if (!$result) {
|
||||
http_response_code(404);
|
||||
die(mysqli_error());
|
||||
die(mysqli_error($link));
|
||||
}
|
||||
|
||||
// print results, insert id or affected row count
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue