help me with this script... it says Parse error, unexpected T_ELSE in /home/www/mysite.com/wap/adminrequest.php on line 77... how can i fix this? hope you guys help me! thankx!!!
CODE////////////////////////////////////////MAIN PAGE else if($action=="adminreq") { addonline(getuid_sid($sid),"Sending admin request",""); echo "<card id="main" title="admin request">"; echo " "; $req = mysql_fetch_array(mysql_query("SELECT req,perm FROM ibwf_users WHERE id='".$uid."'")); if($req[0]=="0" && $req[1]=="0") { echo "If you are interested to be an admin "; echo "Note,you can sent admin request for only one time! "; echo "<a href="index.php?action=adminreqpro&sid=$sid">send admin request</a>";
} else if ($req[0]=="0" && $req[1]>1) { echo "Sorry!you are an admin already!"; }
else { echo "Sorry!You sent admin request to the owner before!"; } echo "
<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</card>";
}
else if($action=="adminreqpro") { addonline(getuid_sid($sid),"Sending admin request",""); echo "<card id="main" title="admin request">"; echo " ";
$msg = "Hello Owner![br/]".getnick_uid($uid)." has sent you a request to be admin ";
$req = mysql_query("INSERT INTO ibwf_private SET text='".$msg."', byuid='".$uid."', touid='1', unread='1', timesent='".time()."'");
$req .= mysql_query("UPDATE ibwf_users SET req='1' WHERE id ='".$uid."'");
if($req) { echo "your admin requst has been sent successfully to the site owner.";
} else { echo "unknown mysql error!"; } echo "
<a href="index.php?action=main&sid=$sid"><img src="images/home.gif" alt="*"/>"; echo "Home</a>"; echo " "; echo "</card>";
} ?> </wml>