I'm trying to make an option to delete an account on my webpage. I can't seem to get the query to run...
This is the code I've been using.

```
<?php 
if (!$con)
    {
        die("<p class='info'>Cannot delete account. Try again later.</p>" . mysql_error());
    }
$db_query=("DELETE FROM Persons WHERE username='???'");
echo "Account deleted!"
    ?>

```

Can anyone tell me if this code is correct, and if it is, what goes in ???. 

**Edit:**

What I am trying to do is that the user can click on delete and they can delete their account. The $session variable still returns an error.

Hold on, I realized that $con was undefined. Sorry about that.