fix: mysqli_error needs MySQLi connection as parameter

This commit is contained in:
Martin Ambrus
2017-10-17 13:05:13 +02:00
parent 6ceb273163
commit ac5d3538f8
57 changed files with 178 additions and 178 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ mysqli_query($GLOBALS["link"], "UPDATE ".TB_PREFIX."vdata SET
crop = '".$_POST['crop']."',
maxstore = '".$_POST['maxstore']."',
maxcrop = '".$_POST['maxcrop']."'
WHERE wref = '".$id."'") or die(mysqli_error());
WHERE wref = '".$id."'") or die(mysqli_error($database->dblink));
header("Location: ../../../Admin/admin.php?p=village&did=".$id."");
?>