Basic Search / While Loop help.
Ok, I'm a moron.. for as much as I know about PHP I'm still stumped as to while loops. I need to write a basic database search script. The script works fine if your only searching for 1 word, but when you search for multiple words it chokes... What I want to do is make an OR search. So here's what I have.
Query: php database networking
$search_terms = explode(" ", $query);
Which in turn gives me an array of $search_terms[*]. I need help with the structure of a while loop that says "while $search_terms is not equal to "blank" then run the following.
Can someone help me please? Thanks in advance.
----------
~cmiller
__________________
----------
~cmiller
|