0

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>';
}
2
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by fortuNe1234
0

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
{ }

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.