View Single Post
Old 10-04-2007, 09:56 AM   #14 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Haha, thanks :)


btw, Haris..

% is a like.. a universal mark, that basicly means "anything".
So you search for anything-$searchword-anything.

So if you search for ape, you would get the results
ape
apes
tape
rape
mapex

etc..

That's why they are good ;)
Also if you search a database, the database "post" would be a string, so you if you don't use the %, you have to search for the whole post to get a result.

Let's say you have a news post with this:
"Once upon a time there was an ape..."

If you don't use %, and search for ape, you don't get anything, cuz you have to search for "Once upon a time there was an ape" to a result.
IF you use, you would get the result "ape" and the newspost "once upon a time there was an ape" :)
Tanax is offline  
Reply With Quote