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

Just out of interest, can anyone tell me how reliable this is?

For instance, if you have a very busy server, could last_insert_id() 
ever return the wrong value?

Regards,
Langdon

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