Forum Moderators: coopster
do {
$Exists = $row_BnBs['EMail'];
if ((isset($_GET['EMail'])) && ($_GET['EMail']!= "")) {
$deleteSQL = sprintf("DELETE FROM SalesList WHERE EMail=$Exists";
mysql_select_db($database_EditData, $EditData);
$Result1 = mysql_query($deleteSQL, $EditData) or die(mysql_error());
} while ($row_SalesList = mysql_fetch_assoc($SalesList));
This is not working. Is there another way to force this script to loop? Or, is there simply something wrong with the script I have?
I've simplified the script to:
do {
$Exists = $row_BnBs['EMail'];
mysql_query("DELETE FROM SalesList WHERE EMail='$Exists'") or die(mysql_error());
} while ($row_SalesList = mysql_fetch_assoc($SalesList));
I'm still getting no response.