Well, kinda almost in the right direction. LIKE is the wrong operater for this. You want =. And since you want it with multiple, you should use IN. Confused? Good 🙂
First, you want to build you list with what was chosen. You're going to want it comma delimeted, and with single quotes for the SQL. or this, we'll use [man]implode[/man].
Let's assume they chose
80212-7068
80215-3764
22031-2400
$areas = implode("','",$_POST['mlbl']);
This creates a string that looks like this:
80212-7068','80215-3764','22031-2400
Now let's put it together with the SQL statement....
$sql = "SELECT AgencyName,
Manager,
Address1,
Address2,
Address3,
City,
RegionISO,
Postal
FROM tad1
WHERE Postal IN ('".$areas."')";
$res = mysql_query($sql);
Using IN is the same as doing OR over and over.