Question
complex query MySQL / CF
I've created a MySQL database which is for a blog. I have
five fields called keyword1, keyword2, etc. I want to write a query
to populate a form list with "unique" keywords after comparing all
five keyword fields. The reason I don't want to have just one field
is to avoid using commas, or spaces in storage.
I'm not that comfortable with arrays in coding and think that's the only way to do this, but am not sure how to go about it.
My assumptions:
The query would look up all records in keyword1 and dump those results and I'd create a loop query to compare those to the words in keyword2 in a secondary query inside the first.
The brain melt is how I get the compared results to make a new master query list so I can then compare it to keyword3 field contents, and so on.
I presume it involves an array, but need help.
Thanks.
I'm not that comfortable with arrays in coding and think that's the only way to do this, but am not sure how to go about it.
My assumptions:
The query would look up all records in keyword1 and dump those results and I'd create a loop query to compare those to the words in keyword2 in a secondary query inside the first.
The brain melt is how I get the compared results to make a new master query list so I can then compare it to keyword3 field contents, and so on.
I presume it involves an array, but need help.
Thanks.
