Advertisement
Guest User

Untitled

a guest
May 4th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. $criteria->compare('title',$this->title,$partialMatch=false);
  2.  
  3. SELECT * FROM tbl_post WHERE title REGEXP '[[:<:]]$this->title[[:>:]]'
  4.  
  5. if ($this->title)
  6. {
  7. $criteria->select = 'title';
  8. $criteria->condition = 'title REGEXP "[[:<:]]:filter_word[[:>:]]"';
  9. $criteria->params = array(':filter_word'=>$this->title);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement