Hello guys,
i have a situation where i need to get the last inserted ID after executing
an INSERT query, after checking the cakesheet i have found that there is a
method called "getLastInsertID()" that is doing something like
mysql_insert_id in native PHP function call, i have checked the cake method
and i found that its calling the method "getInsertID()" which in its turn
returning the value of "$this->__insertID", i am not really that much when
it comes to get a clear view of CakePHP core but when i saw that its
returning the value of "$this->__insertID" i thought to drop this post, my
question is, does "$this->__insertID" get its value from mysql_insert_id in
any way or am i suppose to use mysql_insert_id directly?

Thanks.

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to