> $word = 'bingo';
> $sql = "SELECT a_column FROM table WHERE text_column LIKE '%$word%';
> $res = mysql_query($sql);
> // etc... for displaying results
> 
>   Resuming:
>   % on the beggining - doesn't matter what comes before
>   % on the end - doesn't matter what comes after

Yes, which means that all these following examples would lead to match:

abingo
bingob
abingob

So, this might lead to unwanted match..

-- 
 | ,_,          Jani Mikkonen, bofh and proud of it, +358456700349
 |(O,O)                   http://www.mikkonen.org/jani
 |(   )      Pgp public key @ http://www.mikkonen.org/jani/keyh.html
 +-"-"-------] Life is unfair but root passwords makes it bareable  
 |

Attachment: msg41399/pgp00000.pgp
Description: PGP signature

Reply via email to