Yii Framework Forum: Like Search In Cdbcriteria - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Like Search In Cdbcriteria CDbCriteria Like Search Condition Rate Topic: -----

#1 User is offline   Mohammad Fareed 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 08-March 14
  • Location:Hyderabad

Posted 20 May 2014 - 04:32 AM

Like Search in CDbCriteria

$criteria->compare('LOWER(name)',strtolower($this->name),true, 'AND', 'ILIKE');

Work Fantastic, check it out.
-
With best Regards.
Mohammad Fareed.
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,354
  • Joined: 12-October 09
  • Location:Croatia

Posted 20 May 2014 - 04:40 AM

NOTE: moved to proper section (Tips, Snippets and Tutorials instead of General Discussion for Yii 1.1.x)
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Mohammad Fareed 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 19
  • Joined: 08-March 14
  • Location:Hyderabad

Posted 10 June 2014 - 04:02 AM

View PostMaurizio Domba Cerin, on 20 May 2014 - 04:40 AM, said:

NOTE: moved to proper section (Tips, Snippets and Tutorials instead of General Discussion for Yii 1.1.x)


Thanks.
-
With best Regards.
Mohammad Fareed.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users