Current php code
Code: Select all
$sex = $_GET['horse_sex'];
$sexes = array('Gelding', 'Mare', 'Stallion');
if(strlen($sex) > 0){
if($state1 OR $state2 OR $state3 OR $state4) $sql .= " AND";
foreach($sexes as $sex)
{
$sql .= " horse_sex = '$sex' OR";
}
$sql = rtrim($sql, "OR");
$state5 = true;
}How do I just get it to search for the items that were selected. I've been working on this problem for a couple days now, and I've gotten a little further along, but this is really stumping me. Please help!!