I'm building a picture database with PHP and MySQL. The administrator should be able to add a picture to the database and at the same time add up to 5 keywords describing the picture. For example: Dog, Car, Shop, Food, Train. It's up to the administrator to add these keywords when he needs them.
The user should be able to search the database for some pictures mathing the keywords. The user can only select the keywords that are in the list, typed in by the administrator. My question is:
What method is the best to store these keywords in the table?
In one field called keywords, separated by a comma?
Or in 5 different fields called keyword1, keyword2, keyword3, keyword4, keyword5?
How do I search from PHP?