It's not even echoing my query to the browser!
this is your query:
[text]"DELETE FROM `member2` WHERE `email` = $email_address"[/text]
this is not
[text]$que[/text]
$que is a resultset
but nothing below that seems to work.
How do you know that nothing is working? (echo something incorrectly is not the way to test it)
you can do this:
Code: Select all
$que = mysql_query("DELETE FROM `member2` WHERE `email` = $email_address") or die("Query Error " . mysql_error());
to detect if something is wrong with your query
or test if your query was successful using in this case mysql_affected_rows() immediately after.. per example:
Code: Select all
if (mysql_affected_rows() > 0) {
echo "Record(s) Deleted";
} else {
echo "Delete Query didn't delete any record";
}