Hi Tarique, So if I understand correctly, Model::getLastInsertID should do the same thing as SELECT LAST_INSERT_ID(); which only returns an ID if you inserted a row into a table that has auto_increment?
http://dev.mysql.com/doc/refman/5.0/en/getting-unique-id.html Best, Joshua > P.S. looks like knowing SQL still has its place ;) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
