I just been working with this script today and found it to be very useful for what i need and i have been additions to it nothing big but would like to know if you can make a function like this
// get current time
$time = time();
// inserts code into database
$insert = mysql_query("INSERT INTO `banned` (`ip`,`time`,`long`,`reason`) VALUES ('$ip', '$time', '$legnth', '$reason')") or die("Could not add ban.<br />".mysql.error()."");
echo "The ip address, $ip, has been added to the ban list.";
But to allow you to update database and also have a update form to go with it.
The update form would be using text box to make changes and the text box's would also display the current data in the database...
echo "Edit a ban.<br />";
echo "<form method='post' action='banadmin.php?x=edit'>";
echo "IP Address<br /><input type='text' name='ip' value='ip' ><br />";
echo "Reason<br /><input type='text' name='reason' value='reason' ><br />";
echo "Legnth<br /><input type='text' name='legnth' value='legnth' ><br />";
echo "<input type='submit' name='edit' value='Edit Ban'>";
Any possible way to do this as ive had a long day and well can't think no more..