Blue
White
Purple
Green
Red
Orange
Blue Light
White Light
Purple Light
Green Light
Red Light
Orange Light
Why would this only return "YES" regardless if the record exists? I have this in the before display event...
$rs = CustomQuery("SELECT concat(zip, phonenumber) as zipphone FROM do_not_call WHERE concat(zip, phonenumber) = '".$data['phone1']."'");$record = db_fetch_array($rs);if (!$record["zipphone"]){$xt->assign("my_demo_text","YES");}else{$xt->assign("my_demo_text","NOPE");}
It's not clear what event do you use but try something like this.
$rs = CustomQuery("SELECT concat(zip, phonenumber) as zipphone FROM do_not_call WHERE concat(zip, phonenumber) = '".$data['phone1']."'");$record = db_fetch_array($rs);if (!$record){$xt->assign("my_demo_text","YES");}else{$xt->assign("my_demo_text","NOPE");}