I want to use my string $stringvar to show text in this sql query. ATM its sticking “$player, $score” into a field, I want it to instead print it out into the sql statement.
This is my code:
$stringvar="$player, $score";
$sql=mysql_query(“INSERT INTO $game_db VALUES (’$new_matchid’, ‘$opponent’, ‘$map’, $stringvar, ‘$result’)”);
This is what I want the sql query thing to look like:
$sql=mysql_query(“INSERT INTO $game_db VALUES (’$new_matchid’, ‘$opponent’, ‘$map’, $player, $score, ‘$result’)”);