vijaythapa333 / food-order-website-php

Course - Food Order Website with PHP programming language and MySQL database.
173 stars 80 forks source link

Category-foods showing images in category-foods.php #2

Open zigzagdev opened 3 years ago

zigzagdev commented 3 years ago

If the foods are sold out, maybe you change active mode Yes into No. So i think $sql2 code can be change into like these

$sql2="SELECT * FROM tbl_food WHERE category_id=$category_id && active='Yes'&& featured='Yes'"; ( code: Line.50)

How do you think?