Forum Moderators: coopster
I am trying to build even without knowing if it could be achieved as I envision it the following
I will have in an existing news site the users registering a set of keywords
If a query (triggered by cron) finds any key word then the user is emailed with a link to the article
One at a time I can figure it out
But how can my script figure that new users do have new scripts to be catered to? By querying all users and filtering where keyword is not null?
Another word how can that become a mass query
I am not looking for a script per se but for a rough scenario/scheme/direction
Regards
Henry
1) user,
2) keywords, and
3) articles.
Join user table with keywords table linked by user name. Then you can join the keywords table to your articles table using the like criteria or <> Null to select articles based on the keywords. Its not efficient, but it will work.
[mysql.com...]
As long as you have field you are selecting the keywords from is indexed, your queries will process quicker than without.