Parse error: syntax error, unexpected T_STRING in c:/..........

Reply

Join Date: Aug 2007
Posts: 2
Reputation: fortuNe1234 is an unknown quantity at this point 
Solved Threads: 0
fortuNe1234 fortuNe1234 is offline Offline
Newbie Poster

Parse error: syntax error, unexpected T_STRING in c:/..........

 
0
  #1
Aug 24th, 2007
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

  1. <?
  2. if (ALLOW_OPEN != 1){
  3. exit("You can't open this site directly");
  4. }
  5. if ($_GET['change'] == "yes"){
  6. mssql_query("UPDATE site_config SET sitename = '".$_POST['sitename']."',enable_gmblock = '".$_POST['gmblock']."',enable_store = '".$_POST['storage']."',allow_register = '".$_POST['register']."'");
  7. echo '<script language="JavaScript">window.location="?site=mainconfig";</script>';
  8. }
  9. if ($_GET['changestat'] == "yes"){
  10. mssql_query("UPDATE site_config SET enable_serverstatus = '".$_POST['serverstatus']."',exprate = '".$_POST['exprate']."',droprate = '".$_POST['droprate']."',questrate = '".$_POST['questrate']."',eggexprate = '".$_POST['eggexprate'].");
  11. echo '<script language="JavaScript">window.location="?site=mainconfig";</script>';
  12. }
  13.  
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 10
Reputation: flagbarton is an unknown quantity at this point 
Solved Threads: 0
flagbarton flagbarton is offline Offline
Newbie Poster

Re: Parse error: syntax error, unexpected T_STRING in c:/..........

 
0
  #2
Aug 24th, 2007
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
{ }
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 2
Reputation: fortuNe1234 is an unknown quantity at this point 
Solved Threads: 0
fortuNe1234 fortuNe1234 is offline Offline
Newbie Poster

Re: Parse error: syntax error, unexpected T_STRING in c:/..........

 
0
  #3
Aug 24th, 2007
Aahaa ok, i found it i think i forgot an " in the end of line 14, thanks alot for your help! =)
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC