$sql1 = "INSERT INTO usercars (ID,car) VALUES('$id','1')";
$sql2 = "INSERT INTO usercars (ID,car) VALUES('$id','2')";
$sql3 = "INSERT INTO usercars (ID,car) VALUES('$id','3')";
$sql4 = "INSERT INTO usercars (ID,car) VALUES('$id','4')";
$sql5 = "INSERT INTO usercars (ID,car) VALUES('$id','5')";
mysql_query($sql1);
mysql_query($sql2);
mysql_query($sql3);
mysql_query($sql4);
mysql_query($sql5);
I tried everything. Getting rid of the ' marks before and after teh values, putting the whole thing into one line, and all that.
With this code here, only the first $sql1 statement goes through - the table row is created, but I need 5 rows for each ID generated, and it's just not working properly for some reason. The ID field is an int field, car field is just a VARCHAR field.
THank you.