So I have this query:
select brand.brand, brand.price, flavor.flav_name, style.style_name from brand, cig, flavor, style WHERE cig.brand_id = brand.brand_id and cig.flav_id = flavor.flav_id and cig.style_id = style.style_id
It works fine in the DB, but, of course it will not work when I try to do it through php as that will not return a valid array. At least it won't the way I have it now. What can I do?? I just want to be able to run the query(and similar variations) through a php site.