Page 1 of 1

Error I've never seen before

Posted: Sat Mar 08, 2003 11:48 am
by uberpolak
I've run into a new error and can't seem to find the problem. I'm getting this:
Parse error: parse error, unexpected $end in...
I don't see what's wrong with the end, but maybe someone else will, this is a simplified version of the script it's running on.

Code: Select all

<?php
//some things are determined from the $_POST array, it's determined whether to use a header redirect or keep them here

...
if (sizeof($fines) == 0) {
    header("Location: out2.php");
} else {
?>

Some HTML stuff comes in here, which the user sees if they weren't redirected.

<?php }
//It says the problem is on the following line.
?>
I don't see what's wrong here, but hopefully someone will

Posted: Sat Mar 08, 2003 12:12 pm
by volka
I took the code snippet, deleted the "..." and there was no parse error

Posted: Sat Mar 08, 2003 12:20 pm
by uberpolak
Ahh, my bad, sorry, the problem was that I left the } off of an if statement earlier on...