Jump to content


Photo

Help me please


  • Please log in to reply
4 replies to this topic

#1 dprayer

dprayer
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 07 June 2006 - 05:11 PM

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


#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 07 June 2006 - 05:36 PM

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

#3 dprayer

dprayer
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 07 June 2006 - 05:46 PM

[!--quoteo(post=381077:date=Jun 7 2006, 06:36 PM:name=kenrbnsn)--][div class=\'quotetop\']QUOTE(kenrbnsn @ Jun 7 2006, 06:36 PM) View Post[/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";


}}

?>

#4 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 07 June 2006 - 05:53 PM

Where is the begining If statement?

#5 dprayer

dprayer
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 07 June 2006 - 05:57 PM

[!--quoteo(post=381083:date=Jun 7 2006, 06:53 PM:name=SharkBait)--][div class=\'quotetop\']QUOTE(SharkBait @ Jun 7 2006, 06:53 PM) View Post[/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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users