Browse Source

Add a parameter expected by mysqli_error()

Matej Duník 6 years ago
parent
commit
3b402605bc
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      extras/core.php

+ 1
- 1
extras/core.php View File

@@ -46,7 +46,7 @@ $result = mysqli_query($link,$sql);
46 46
 // die if SQL statement failed
47 47
 if (!$result) {
48 48
   http_response_code(404);
49
-  die(mysqli_error());
49
+  die(mysqli_error($link));
50 50
 }
51 51
 
52 52
 // print results, insert id or affected row count

Loading…
Cancel
Save