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>';
}