help!

unexpected $end error!!

here is my code

i took out the beginning for my purposes, anyway there is a correct starting but at the end with the $end error, please help

[php]<?php
if($points > 2){
echo “Point Status: Horrible”;
}else if($points > 5){
echo “Point Status: Better, But Still Horrible”;
}else if($points > 10){
echo “Point Status: Average Point Status”;
}else if($points > 20){
echo “Point Status: Above Average Point Status”;
}else if($points > 50){
echo “Point Status: Over Achiever Point Status”;
}else if($points > 100){
echo “Point Status: Lucky Bitch Point Status”;
}else if($points > 250){
echo “Point Status: Pro Point Maker Status, Also Loved By All”;
if($status == 1){
$status = User;
}else if($status == 2){
$status = Administrator;
echo “
”;
echo “Point Status: In Progress”;
};
?>

<? if($_COOKIE[auth] == yes){ ?> <? if($_GET[id] == false){ echo "No user specify"; }else { ?>

Welcome to <?=$user?>'s profile.


Account Info
Username: <?=$user?>
Email: <?=$email?>
Status: <?=$status?>
Profile: <?=$desc?>
Points: <?=$points?> };
?> [/php]

[size=99px]**Mod Edit: Added PHP Tags for readability.[/size]

u shouldn’t use sort opening tags (<?). use <?php instead.

most of the times this error is caused by missing ‘}’.

Here is a prime example of when code formatting comes into play.
I took the code you supplied and added some simple formatting and now you can see what you are doing. 3 things wrong with this: 1st off you are missing a 2 }. And you are using }; in 2 different spots which should be throwing an error as this is incorrect syntax. Try using error_reporting(E_ALL); at the top of you page and these errors should reveal themselves.

[php]if($points > 2)
{
echo “Point Status: Horrible”;
}
else if($points > 5)
{
echo “Point Status: Better, But Still Horrible”;
}
else if($points > 10)
{
echo “Point Status: Average Point Status”;
}
else if($points > 20)
{
echo “Point Status: Above Average Point Status”;
}
else if($points > 50)
{
echo “Point Status: Over Achiever Point Status”;
}
else if($points > 100)
{
echo “Point Status: Lucky Bitch Point Status”;
}
else if($points > 250)
{
echo “Point Status: Pro Point Maker Status, Also Loved By All”;
if($status == 1)
{
$status = User;
}
else if($status == 2)
{
$status = Administrator;
echo “
”;
echo “Point Status: In Progress”;
};
?>

<? if($_COOKIE[auth] == yes) { ?> <? if($_GET[id] == false) { echo "No user specify"; } else { ?>
	<h3>Welcome to <?=$user?>'s profile.</h3><br>
	<table border=0 cellspacing=0 cellpadding=2>
	<tr><td colspan=2 align=center>Account Info
	<tr><td>
	Username:<td><?=$user?>
	<tr><td>
	Email:<td><a href='mailto:<?=$email?>'><?=$email?></a>
	<tr><td>
	Status:<td><?=$status?>
	<tr><td>
	Profile:<td><?=$desc?>
	<tr><td>
	Points:<td><?=$points?>

}; [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service