Error I've never seen before

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Error I've never seen before

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I took the code snippet, deleted the "..." and there was no parse error
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

Ahh, my bad, sorry, the problem was that I left the } off of an if statement earlier on...
Post Reply