I haven’t touched any code in a good 4-5 months, so just returning to it today usually takes a week or so to get all the information flowing through my brain again as soon as I take months. So my project, which I am about to start, will be a PHP / MySQL bookmark database.
I want to create a beautiful searchable database with all my favorite websites / bookmarks. Each entry will have several keywords assigned to it, so I can easily find all my bookmarks for the term “php” and all entries with “php” in the column or header of the keyword or otherwise return to the result set.
Here is my database idea so far ...
auto_id = name/title = description = URL = clicks = date_created = date_accessed = category = sub_category = keywords =
It’s pretty straightforward for me how to build this system, except that I’m looking for help / advice on the best way to store keywords. Each site / record that I add to the database can contain from 1 to several keywords per site. These keywords should be able to help with the search part of my application. So, how do I store keywords for a site in my database? I know that I can only have the string "keywords" in the table and store keywords for each entry, such as "php, web, etc., Keyword 4", so all keywords for each site are stored in 1 column, but that doesn't seem to be the best way when it comes to database searches.
Please tell me how would you do this part? Thanks for any help
php mysql tags full-text-search
Jasondavis
source share