score1, team1 ...
score2, team2 ...
How do I loop in PHP? I tried the code below that is commented out, but no go. I can get a record into my MySQL database, no problem. I could get one very long record or row into my database with all the scores, but that would be hidious! Thanks if you can help, or even if you can't!
Code: Select all
$result = mysql_query("INSERT INTO weeklyscores (assoc_name, league_name, submitted_by, email, week, game_date)
VALUES ('$assoc_name', '$league_name', '$submitted_by', '$email', '$week', '$game_date')");
//for($count;$count<5)$count++)
//{
//insert into weeklyscores $_POSTї"score_a_".$count."" ] if score_a_$count !="" ;
//}