|
That should probably have some explanation with it chrishirst.
The LIKE will tell mySQL to look through which ever fields you have asked the query to look through for any word contained in the quotes following the LIKE statement.
You'll also notice that chrishirst has put % operators at the beginning and end of the keyword, these are mySQLs wild cards, that means that (say the key word is "bob") then the query can find anything within the data such as bob, bobby, billybob, etc. That's because the wildcards are at either end, so as you can imagine if it was simply 'bob%' it would find bob, bobby but not billybob. You don't HAVE to use the wildcard, only if you want a more open, result yielding search.
Also, i'd advise that you check out the mySQL Manual on what it has to say about the LIKE statement. I would give you a link, but the mySQL manual is so bloody rubbish I can't actually find reference to it...
__________________
A lie gets halfway around the world before the truth has a chance to get its pants on. - Sir Winston Churchill
Please visit my sites: Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|