Sunday, April 10, 2011

Horrible SQL


$db->query("delete from email_campain_settings where UserID='".$_POST['objID']."' and
TagValue='Active' and TagID='free' ");
$db->query("delete from email_campain_settings where UserID='".$_POST['objID']."' and
TagValue='Active' and TagID='paid' ");
$db->query("delete from email_campain_settings where UserID='".$_POST['objID']."' and
TagValue='Active' and TagID='GOLD' ");
$db->query("delete from email_campain_settings where UserID='".$_POST['objID']."' and
TagValue='Active' and TagID='SILVER' ");
$db->query("delete from email_campain_settings where UserID='".$_POST['objID']."' and
TagValue='Active' and TagID='PLATINUM' ");


Fantastic. Just go home, ok?

1 comment:

Followers