I'm a newbie dabbling in the occasional case of php ( though more often I'll be nicking and modifying scripts my younger brother made ).
What I want to do is upload some information to a MySQL-database - this isn't a problem, my code may be far from perfect but it works.
What I need help with is how to collect information from the database afterwards - i.e actually putting it to good use.
In this particular case, I want 4 variables written to a FAQ database: Question, Poster, Date and Answer, where Q and A should be able to contain rather long stretches of text.
I want to create a search engine that will browse the Question and Answer fields of the database and return all posts that contain whatever keyword/s was entered into the search engine. I just don't know where to start.
If someone would give me some detailed, solid clues I'd be eternally grateful - and if someone would like to sit down and type together some actual working code for the whole thing I'd be willing to pay a few bucks for their trouble.
Then a second, somewhat similar question for another database - I want to add a field for multiple keywords to the posts, but how do I collect them afterwards? Not through a search engine, but as part of webpages - say I have a database post with the keywords 'daffodil' and 'sun', one with 'sun' and 'flower' and one with 'daffodil' and 'rain', and I want to display all posts containing the keyword 'sun' on a page?
Since there are multiple keywords, I can't just use an ordinary 'display all yadda yadda where variable = certain word', can I? Is there some command like 'display all where variable contains certain word'?
Geh, I'm not sure if anyone can decipher my ramblings and understand what I'm getting at - it's been a while since I last did anything php-wise.