From 283c5c40827929d225f4827131a4066cefcdf362 Mon Sep 17 00:00:00 2001 From: jrtechs Date: Tue, 16 May 2017 13:04:03 -0400 Subject: [PATCH] Work on high score --- games/bamboofield.html | 6 +----- games/insertScore.php | 5 ++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/games/bamboofield.html b/games/bamboofield.html index 9d8af4e..0b0ee73 100644 --- a/games/bamboofield.html +++ b/games/bamboofield.html @@ -272,11 +272,7 @@ context.fillText("You died with a score of: " + score, 250, 325); - document.body.innerHTML += '
\n\ - \n\ - \n\ - \n\ -
'; + document.body.innerHTML += '
>
'; document.getElementById("dynForm").submit(); } animate(tic); diff --git a/games/insertScore.php b/games/insertScore.php index 87eac1f..6119155 100644 --- a/games/insertScore.php +++ b/games/insertScore.php @@ -12,9 +12,12 @@ $q = "insert into scores(game, user_id, score) values('$i_game','$i_user_id','$i_score')"; + echo '

' . $q . '

'; + $r = mysqli_query($dbc, $q); + - echo(""); + //echo(""); }