$suppliers = $this->Supplier->find('all',
                                                array(
                                                'conditions' =>

array('AND',array('supplier_name'=>'narendra',

                                                               'supplier_id'
=> $sId)
                                                               ),

                                                                'order' =>
array(

'supplier_id ASC')));



On Wed, May 19, 2010 at 4:02 PM, Jeremy Burns <jeremybu...@me.com> wrote:

> http://book.cakephp.org/view/1017/Retrieving-Your-Data
>
> Jeremy Burns
> jeremybu...@me.com <jeremybu...@mac.com>
>
>
> On 19 May 2010, at 11:28, Dilip Godhani wrote:
>
> Hello
>
> How i use Order by with and condition can any one give me one good
> example??
>
> Thanks..!
>
>
> --
> Dilip Godhani
> Jr Software Developer, Entourage Solutions
> e-mail: di...@entouragesolutions.com
>           dilip.godh...@gmail.com
> Web.: www.entouragesolutions.com
> m. 9913822582
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php?hl=en
>
>
>  Check out the new CakePHP Questions site http://cakeqs.org and help
> others with their CakePHP related questions.
>
> 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
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to