I have an array price_below[] that contains a number, say 10.00. I would like to search my database for numbers lower than that number.
How do I use array variables in my query?
elseif ($cat == 'y' && $price_low == "NULL"
&& $price_high == "NULL" && $price_below != "NULL"
&& $price_order == "lowtohigh") {
$sql = "select * from wishlist, Description, Category,
location WHERE wishlist.desc_id = Description.desc_id &&
Description.cat_id = Category.cat_id &&
Description.loc_id = location.loc_id
&& 'price' <= '$price_below[]'
order by 'category', 'price'";
}