[eluser]Aaron L.[/eluser]
Hello,
I am working on writing a search function and have run into a road block. I have a statement like this:
Code:
if($_POST['keywords']){
$this->db->where('about LIKE',$_POST['keywords']);
}
where the 'about' field is a field which contains information about a given user, and thus can get quite long.
In this case, a LIKE statement doesn't seem to come up with anything. I would like for it to pull-up records which have a word or words in the keywords contained in the about section. I know I am missing something obvious... can you help me out? Thanks in advance if you can!
- Aaron