I have a field that stores multiple zip codes. A query result for the zip codes column may contain several zip codes: 90027,90028,90068
I need an if statement to check if a single zip code is in the result
$zipstring = $rows['pool_zip_codes']);
$zipsql = "SELECT `pool_zip_codes` FROM `cases` WHERE `id` = '{$rowid}' AND `pool_zip_codes` IN ('{$zipstring}') ";
$zipqry = mysql_query($zipsql);
$zipresult = mysql_fetch_row($zipqry);
if (($zipresult[0]) == '90068') {
this zip code is in the list
} else {
not in list
}
};