I'm trying to concatenate (spelling) this string in a mysql query.
First this code:
$result = mysql_query("INSERT INTO nbalive_daybyday
(GP, Nickname, PTS, FGM, FGA)
VALUES ('GP".$i."' , 'Nickname".$i."' , 'PTS".$i."', 'FGM".$i."' , 'FGA".$i."')");
With this code i get
GP1, Nickname1, PTS1 etc
GP2, Nickname2, PTS2 etc
What i need is to get the VALUES of these data so i need.
$GP1, $Nickname1, $PTS1 etc
$GP2, $Nickname2, $PTS2 etc
I tried this code but it didn't work...
$result = mysql_query("INSERT INTO nbalive_daybyday
(GP, Nickname, PTS, FGM, FGA)
VALUES ('".$."GP".$i."' , '".$."Nickname".$i."' , '".$."PTS".$i."', '".$."FGM".$i."' , '".$."FGA".$i."')");
When i try this code:
$result = mysql_query
("INSERT INTO nbalive_daybyday
(GP, Nickname, PTS, FGM, FGA)
VALUES ('$GP".$i."' , '$Nickname".$i."' , '$PTS".$i."', '$FGM".$i."' , '$FGA".$i."')");
i get this in the database:
1, 1, 1, etc
2, 2, 2, etc
These are NOT the values....
Anybody know how to do this ?