Fixup for other MYSQL versions

This commit is contained in:
Vojtěch Sajdl
2017-11-29 15:01:16 +01:00
parent 5f8c7f8166
commit f5c2b5448d
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ class Service
{
global $mysqli;
$name = $_POST['service'];
$stmt = $mysqli->prepare("INSERT INTO services VALUES('',?)");
$stmt = $mysqli->prepare("INSERT INTO services VALUES(NULL,?)");
$stmt->bind_param("s", $name);
$stmt->execute();
$query = $stmt->get_result();