dprayer Posted June 7, 2006 Share Posted June 7, 2006 Hi All I have the following error showing in my website :Parse error: syntax error, unexpected '}' in /content/StartupHostPlus/m/a/mafia-don.co.uk/web/mods/MODcP.php on line 412on line 412 i have412 }elseif (strip_tags($_GET['op']) == "war"){413 if (strip_tags($_POST['warning_username']) && strip_tags($_POST ['warning_msg'])){That is line 412 and 413..Does anyone know why i am getting the error.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/11428-help-me-please/ Share on other sites More sharing options...
kenrbnsn Posted June 7, 2006 Share Posted June 7, 2006 Please post at least the preceding 10 to 20 lines. This error is saying that PHP didn't expect to see the "}" at the start of the line. Without seeing the preceding lines, there is no way to tell what may have caused the error.Ken Quote Link to comment https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42876 Share on other sites More sharing options...
dprayer Posted June 7, 2006 Author Share Posted June 7, 2006 [!--quoteo(post=381077:date=Jun 7 2006, 06:36 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 7 2006, 06:36 PM) [snapback]381077[/snapback][/div][div class=\'quotemain\'][!--quotec--]Please post at least the preceding 10 to 20 lines. This error is saying that PHP didn't expect to see the "}" at the start of the line. Without seeing the preceding lines, there is no way to tell what may have caused the error.Ken[/quote]?><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"><!--body,td,th { color: #FFFFFF;}body { background-color: #000000;}a:link { color: #FFFFFF;}a:visited { color: #FFFFFF;}a:hover { color: #FF0000;}.style1 {color: #000000}--></style></head><body></body></html><?php}elseif (strip_tags($_GET['op']) == "war"){if (strip_tags($_POST['warning_username']) && strip_tags($_POST['warning_msg'])){$warning_username=strip_tags($_POST['warning_username']);$warning_msg=strip_tags($_POST['warning_msg']);$check=mysql_num_rows(mysql_query("SELECT * FROM users WHERE username='$warning_username'"));if ($check =="0"){echo "No such user!";}elseif($check !="0"){mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` ) VALUES ('', '$warning_username', '$warning_username', '$warning_msg You Have BEEN warned!', '$date', '0', '0', '0')");echo "Warning Issued";}}?> Quote Link to comment https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42879 Share on other sites More sharing options...
SharkBait Posted June 7, 2006 Share Posted June 7, 2006 Where is the begining If statement? Quote Link to comment https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42882 Share on other sites More sharing options...
dprayer Posted June 7, 2006 Author Share Posted June 7, 2006 [!--quoteo(post=381083:date=Jun 7 2006, 06:53 PM:name=SharkBait)--][div class=\'quotetop\']QUOTE(SharkBait @ Jun 7 2006, 06:53 PM) [snapback]381083[/snapback][/div][div class=\'quotemain\'][!--quotec--]Where is the begining If statement?[/quote]do you have msn then i can give you the script that way to make it easier Quote Link to comment https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42885 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.