Parse error?
| From: | Frank Keessen | Date: | Sat, 15 Nov 2003 21:38:07 +0000 |
| Subject: | Parse error? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-169768@lists.php.net to get a copy of this message | ||
Hi Guys,
Sorry to trouble you on a saturday night (at least in The Netherlands...)..
Get a parse error on line 42, but i can't see what is causing the trouble. (Parse error: parse
error in /home/.sites/95/site92/web/admin/editreis.php on line 42)
if(is_array($_POST['accomodatieid'])) {
foreach($_POST['accomodatieid'] as $Key => $Value) {
$query = 'INSERT INTO ttra(reisid, accomodatieid) VALUES ('. $id2 .', '. $Value
.')';
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
};
} else {
$query = 'INSERT INTO ttra(reisid, accomodatieid) VALUES ('$id2',
'.$_POST['accomodatieid'].')'; <- THIS IS LINE 42
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
}
Thanks for the help!
Regards,
Frank