Jump to content

Complicated


sstangle73

Recommended Posts

Parse error: syntax error, unexpected '"', expecting ']' in /homepages/27/d193007783/htdocs/maddogmania/new_application/roster.php on line 41

 

$text='';
for($i=1; $i<=$roster_max; $i++){
$text .= "
LINE41	`player" . $i . "_number` = '$_POST[player" . $i ."_number]' ,
`player" . $i . "_name` = '$_POST[player" . $i ."_name]' ,
`player" . $i . "_grade` = '$_POST[player" . $i ."_grade]' ,
`player" . $i . "_phone` = '$_POST[player" . $i ."_phone]' ,
`player" . $i . "_email` = '$_POST[player" . $i ."_email]' ,
`player" . $i . "_parents` = '$_POST[player" . $i ."_parents]' ,
";
}

 

Thanks for the help!

Link to comment
https://forums.phpfreaks.com/topic/221824-complicated/
Share on other sites

$text='';
for($i=1; $i<=$roster_max; $i++){
$text .= "`player" . $i . "_number` = '".$_POST['player' . $i .'_number']."' ,
`player" . $i . "_name` = '".$_POST['player' . $i .'_name']."' ,
`player" . $i . "_grade` = '".$_POST['player' . $i .'_grade']."' ,
`player" . $i . "_phone` = '".$_POST['player'. $i .'_phone']."' ,
`player" . $i . "_email` = '".$_POST['player' . $i .'_email']."' ,
`player" . $i . "_parents` = '".$_POST['player' . $i .'_parents']."' ,";
}

Link to comment
https://forums.phpfreaks.com/topic/221824-complicated/#findComment-1147934
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.