I have the following script
delete_user.php
<?php
mysql_connect("localhost");
mysql_select_db("authentication");
$username=$_POST[users];
if($_POST[delete]) {
echo $username;
if($username) {
mysql_query("DELETE FROM users WHERE username='$username'");
echo "<center> Successfully Deleted $username</center>";
empty($username);
echo "<meta http-equiv='refresh' content='3;url=delete_user.html'>";}
else {echo "<center>Nobody was inserted for deletion</center>";}
}
mysql_close(); ?>
When i parser executes the above script is shows that there is a problem such as "Execution Error"
Where is the problem?
I have to note that the $_POST[xxx] variable cames from another script and in particular a form called delete_user.html