Look at documentation, especially the $this->User->findAll method. Use
array('field1' => value, 'field1' => value) as first parameter of
findAll. That should be enough to accomplish this very basic query (as
well as very documented).

On Oct 2, 10:44 pm, sixlaneve <[EMAIL PROTECTED]> wrote:
> Any working example...
>
> I need to grab results from a table, with a query like
>
> SELECT * FROM USERS WHERE x=firstvariable AND y=secondvariable;
>
> any example?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to