I have the code below to retrieve rows from a database where the username column matches the base directory name:
$username = basename(dirname(__FILE__)); $user
echo "X";
create a page that with _GET['id'] parameter;
_GET['id']
And on that page i.e. deletepage.php?id=15
deletepage.php?id=15
$sql = "DELETE table FROM table WHERE id = ".(int)$_GET['id'] mysql_query($sql); header("location: previoudpage.php");