Location: PHPKode > scripts > Ban Control > Ban Control/ban_control/ban_edit2.php
<?php
require('include/header.php');
$bannedid = $_GET['id'];

//read out the faqs
?>





<table class="table" width="100%" class="table">
	<tr class="table_header">
		<td>Edit Ban</td>
	</tr>
	<tr class="row1">
		<td>
<?php
//read out the faqs



echo $question;

$sql = "UPDATE ".$prefix."banned SET b_ip='$_POST[ip]',b_reason='$_POST[reason]',b_message='$_POST[message]',b_link='$_POST[link]' WHERE b_id=".$bannedid; 
if (!mysql_query($sql,$con)) {
	   die('Error: ' . mysql_error());
}
echo "Your ban is edited succesfully in the database.";



?>
		</td>
	</tr>
</table>







<?php
//end read out the faqs
 

require('include/footer.php');

 ?>
Return current item: Ban Control