Hi,
Q1. How would you go about retrieving a data from a mysql table and put it into a drop-down menu, but as something else. e.g. if record in db was '1', i'd like to be able to display 'Yes'. and if value was '0', i'd liike it to display 'No'.
Secondly, I am creating an image gallery for my website, however I need to know the qyery will look like, if I wanted it to display all the images from a specific category.
So basically, there are 2 tables, db_categories and db_images.
db categories contains all the categories and their id's. In db_images, there are fielsa for the iomage itself, id and finally in which category it is(cat_ID). So how would the query look like if I wanted it to fetch it by a specific category.
Make any sense?
Thanks!😉