[HELP]Coding Command using php[HELP]

Status
Not open for further replies.

Li1M0ST3Rz

I <3 Bianca
Sep 13, 2010
269
166
it wouldn't work

Code:

PHP:
<?php
if($_POST['usermsg'] == '.clear chatroom' and $row['userlevel'] == 9):
        $fp = fopen( "log.html", "w" );
        fwrite( $fp, "" );
        fclose( $fp );
    else:
if($row['userlevel'] == 1):   
    fwrite($fp, "<div class='msgln'><i>User ". $row['username'] ." had tried to clear the chatroom.</i><br></div>");
endif;
?>
 

Tronscript

Member
Aug 18, 2012
93
8
PHP:
<?php
if($_POST['usermsg'] == '.clear chatroom' and $row['userlevel'] == 9) {
        $fp = fopen( "log.html", "w" );
        fwrite( $fp, "the shit worked" );
        fclose( $fp );
}
 
else {
if($row['userlevel'] == 1) {
    fwrite($fp, "<div class='msgln'><i>User ". $row['username'] ." had tried to clear the chatroom.</i><br></div>");
}
?>
 
Status
Not open for further replies.

Users who are viewing this thread

Top