From b403c053e72bc71d9a9085c9ff481a90a6c25b31 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 23 Jun 2016 23:10:44 +0200 Subject: [PATCH] . --- connectfourLearn.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectfourLearn.php b/connectfourLearn.php index 54c3e4f..12d34c8 100644 --- a/connectfourLearn.php +++ b/connectfourLearn.php @@ -49,7 +49,7 @@ function play($map,$colToPlay,$me,$opponent,$gameid,$player_index){ global $lnMySQL; //save the lap on the database and then send the play response - mysqli_query( + mysqli_query($lnMySQL, "INSERT INTO battleship_current (game_id,player_index,map,play_at) VALUES ('".mysqli_real_escape_string($lnMySQL,$gameid)."', '".mysqli_real_escape_string($lnMySQL,$player_index)."',