Jump to content

Archived

This topic is now archived and is closed to further replies.

dprayer

Help me please

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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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";


}}

?>

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

×

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.