It just doesn't seem to be working; this is my delete:
<code><?php
$username = $_GET["username"];
include 'config.php';
mysql_query ("DELETE FROM users
WHERE username = ".$username);
echo 'succesfully deleted user';
//header("Location: panel.php");
?></code>
and this is my row file
<code><?php
$query = 'SELECT * FROM users';
$result = mysql_query($query);
while ($row = mysql_fetch_array($result)) {
echo ' <tr> ';
echo ' <td> ';
echo $row['username'];
echo ' <td> ';
echo $row['time'];
echo ' <td> ';
echo $row['amount'];
echo ' <td> ';
echo $row['price'];
echo '<form action="/delete_user.php" method="POST">';
echo '<td>';
echo '<input type="submit" name="'.$row['username'].'" value="delete"/>';
echo '</form>';
}
?></code>
When I go to delete_user.php?username=test it says the echo but it doesn't actually delete the user from table?