Hi,
Been looking for a easy solution to a fairly common problem: how do I structure a MySQL table for searchable keywords in the format: apples, bananas, grapes etc?
I want to be able to add keywords in a Textarea feild to a photo to make it searchable... should I split up the keywords in the database, or have them in one long record?
What I am looking for is a fast (to search) MySQL table structure.
Should it be:
photo_search_db
record_id = 1;
photo_id = 1;
photo_keywords = "apples, bananas, grapes";
OR
photo_search_db
record_id = 1;
photo_id = 1;
photo_keywords = "apples";
record_id = 2;
photo_id = 1;
photo_keywords = "bananas";
record_id = 3;
photo_id = 1;
photo_keywords = "grapes";
Thanks Guys!