Re: problem using find method in cakephp with conditions contains 'LIKE'

2008-11-15 Thread Bilel
Thank you ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more opt

Re: problem using find method in cakephp with conditions contains 'LIKE'

2008-09-17 Thread RichardAtHome
'conditions' => array('Book.title LIKE' => 'A%'), The condition has been moved to the left hand side as a security measure. On Sep 17, 8:14 am, "jittos" <[EMAIL PROTECTED]> wrote: > i am a new comer in cakephp.. i am going through some tutorials in > cakephp.. i found one problem i want to w

problem using find method in cakephp with conditions contains 'LIKE'

2008-09-17 Thread jittos....
i am a new comer in cakephp.. i am going through some tutorials in cakephp.. i found one problem i want to write find method for the following query SELECT `Book`.`isbn`, `Book`.`title`, `Book`.`author_name` FROM `books` AS `Book` WHERE `Book`.`title` LIKE 'A%' ORDER BY `Book`.`isbn` DESC LIMIT 2