php - Zend: How to fetch record from Database without considering case sensitive? -
I am using the Zend Framework I want to get a record from the database without considering the case sensor.
This is my personal tab:
id | Name | Gender | Business -------- --------------------------- 1 | Innovation | Men | Software Engineer ------------------------------------- 2 | Ely | Men | Software developer
Now if I use the following string to record in that section using the 'Acquisition' in the above table, it is always Record Number 1 (the record of the Nawid) Should be withdrawn.
Software Engineer Software Engineer Softewater Engineer Software Engineer
I am using the following methods to get a record from database in jade.
$ occupation = "software engineer"; $ Table = new Model_Person_DbTable (); $ Select = $ Table-> Choose (); $ Select- & gt; Where ('business =?', $ Business); $ Rows = $ table- & gt; Get All (select $);
Now how do I change the Zend code above for my scenario?
I can make an argument to ignore sensitive issues outside of the database, but I know that if there is any
thanks
Try
$ select-> Where ('upper (business) = upper (?)', $ Business);
This column and search value will create value in uppercase
Comments
Post a Comment