Hi all, i just dont understand why i get this error :
Parse error: syntax error, unexpected T_STRING in C:\Program Files\wamp\www\working3\admincp\pages\mainconfig.php on line 11

I have google it alot and i just find that its probably becouse ur missing a ;, But i cant find the place. I have tested almost everything but it just give me other errors, So im asking someone thats good at this to help me. Thanks alot for reading// Erik

<?
if (ALLOW_OPEN != 1){
	exit("You can't open this site directly");
	}
if ($_GET['change'] == "yes"){
mssql_query("UPDATE site_config SET sitename = '".$_POST['sitename']."',enable_gmblock = '".$_POST['gmblock']."',enable_store = '".$_POST['storage']."',allow_register = '".$_POST['register']."'");
echo '<script language="JavaScript">window.location="?site=mainconfig";</script>';
}
if ($_GET['changestat'] == "yes"){
mssql_query("UPDATE site_config SET enable_serverstatus = '".$_POST['serverstatus']."',exprate = '".$_POST['exprate']."',droprate = '".$_POST['droprate']."',questrate = '".$_POST['questrate']."',eggexprate = '".$_POST['eggexprate'].");
echo '<script language="JavaScript">window.location="?site=mainconfig";</script>';
}

Files\wamp\www\working3\admincp\pages\mainconfig.php on line 11
it usually happen when you have an error in your if statement
if ()
{ }
elseif()
{ }
else
{ }

Aahaa ok, i found it i think i forgot an " in the end of line 14, thanks alot for your help! =)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.