I am trying to select records by zip, they are stored like this:
56510-56511-56514-56519. My problem is is that some of the zipcodes in the database are ten digit, can I use a wild card with the IN STATEMENT, or maybe just select the first 5 digits.
$selectedzip1 = str_replace("-", "\",\"", $selectedzip);
$selectedzipstr = implode("','", $selectedzip1);
$query = "UPDATE TABLE SET ACTIVE = '1' WHERE CLOSEDATE > '$date' ";
if($selectzip =='1'){
$query.=" AND MAKE IN (\"".$selectedzipstr."\")";
}
Thanks for any help.