I am using javascript to retrieve a bunch of values from the Riot API, however I want to store them in my own database using php. For example, I'm trying to store the gameID and this is what I'm trying right now.
      <?php
        $insrt = "INSERT INTO game (gameId)
        VALUES (".<script>b.gameId</script>.")";
        mysqli_query($dbc, $insrt);
        ?>
I'm pretty sure that I'm not even close to correct but I'm not sure how to do this.