On Feb 13, 9:40 pm, "admin_AT_loveyourdress.com" <[EMAIL PROTECTED]>
wrote:
> Before cake, whenever i save data into a row without specifying the
> id(auto incremental primary key). I cant get the id number back from
> mysql withouth doing a search. However, using cake's model->save, i
> get the model->id magically. Anyone actually knows how cake retrived
> the id key?

But you had the last_insert_id() mysql function for that purpose.


--~--~---------~--~----~------------~-------~--~----~
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