[HELP]Ban User[HELP]

Status
Not open for further replies.

SupremeCoder

New Member
Mar 14, 2011
15
4
i have an non-error but a missing code? here the picture:
KlqHqwGnHgb0.png

Code:
admin.php?ban
PHP:
<?php
if(isset($_GET['ban'])) {
include 'config.php';
$ban = $_POST['block'];
    echo '<div class="msgOk">You have banned '. $ban .'!</div>';
$query = "UPDATE users SET userlevel = '-1' WHERE username='". $ban ."'";
$result = mysql_query($query);
 
$fp = fopen("log.html", 'a');
fwrite($fp, "<div class='msgln'><i>SYSTEM: ". $ban ." has been banned!</i><br></div>");
}
?>
admin.php ban input:
PHP:
              <td><form name="block" method="post" action="admin.php?ban">
              <input type="text" method="post" class="inputbox" name="block" />
              <th align="right"><input class="button" name="block" type="submit" value="Ban this fool!!!" /> </th>
              </form></td>
if you what to see the error live. go to
 
Status
Not open for further replies.

Users who are viewing this thread

Top