SupremeCoder
New Member
- Mar 14, 2011
- 15
- 4
i have an non-error but a missing code? here the picture:
Code:
admin.php?ban
admin.php ban input:
if you what to see the error live. go to
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>");
}
?>
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>
You must be registered for see links