Hi!
I try to write a search for a php/mysql-based webforum.
each forum has its entries, subjects, authors, etc. stored in one table. (eg. f1, f2, ...)
I want to write a query which selects for example all entries in all forums (e.g. tables) whose subject is 'test'.
I tried:
SELECT f1.id,f1.subject,f1.entry,f2.id,f2.subject,f2.entry,f3.id,f3.subject,f3.entry FROM f1,f2,f3 WHERE (f1.subject LIKE '%test%') OR (f2.subject LIKE '%test%') OR (f3.subject LIKE '%test')
But this won't return any results, although there are subjects with "test" in it! Any Ideas? tia!