Jump to content

Recommended Posts

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 412

on line 412 i have

412 }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
Link to comment
https://forums.phpfreaks.com/topic/11428-help-me-please/
Share on other sites

[!--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";


}}

?>
Link to comment
https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42879
Share on other sites

[!--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
Link to comment
https://forums.phpfreaks.com/topic/11428-help-me-please/#findComment-42885
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.