Excuse my lack of understanding subqueries... but I can't figure this one out on my own. Currently I have two queries I am running, and I'm positive I can accomplish this in one query. Any suggestions?
First delete all emails that have a grp_id as "#".
Then delete the group id that = "#".
$del_emails_sql = "DELETE FROM enews WHERE grp_id='$_POST[radioID] AND siteID='$_SESSION[siteID]'";
Anyone? Thanks in advance.
$del_grp_sql = "DELETE FROM enews_grps WHERE id='$_POST[radioID]' AND siteID='$_SESSION[siteID]'";