<?php
require('include/header.php');
//read out the faqs
?>
<table class="table" width="100%">
<tr class="table_header">
<th class="table_header" colspan="2">
<p align="left">Add a ban</th>
</tr>
<tr>
<td class="cell_content">
<?php
//read out the faqs
$sql="INSERT INTO ".$prefix."banned (b_ip, b_reason, b_message, b_link)
VALUES
('$_POST[ip]','$_POST[reason]','$_POST[message]','$_POST[link]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Your question is added succesfully to the database.";
?>
</span></td>
</tr>
</table>
<?php
//end read out the faqs
require('include/footer.php');
?>