Explorar o código

Wrong table name

Axel Nordh %!s(int64=5) %!d(string=hai) anos
pai
achega
c088921833
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dbFiles/NewOnlineGame.php

+ 1 - 1
dbFiles/NewOnlineGame.php

@@ -77,7 +77,7 @@
 		$categoryValues .= "($gameId, $catId),";
 	}
 	$categoryValues = rtrim($categoryValues, ",");
-	$categorySql = "INSERT INTO gameCategory(gameId, categoryId) VALUES $categoryValues";
+	$categorySql = "INSERT INTO gameCategories(gameId, categoryId) VALUES $categoryValues";
 
 	$result = mysqli_query($conn, $categorySql);
 	$error = mysqli_error($conn);