lostnucleus Posted May 11, 2010 Share Posted May 11, 2010 Well i did $row = $myTb->createRow(); $row->name = 'foo'; $row->email ='some@gmail.com'; $row->save(); The row gets inserted into the database , how can i get the value of last insert primary key id of that row ?? Thanks in Advance. Quote Link to comment https://forums.phpfreaks.com/topic/201349-row-save-now-how-do-i-get-the-last-insert-id-in-zend-framework/ Share on other sites More sharing options...
lostnucleus Posted May 11, 2010 Author Share Posted May 11, 2010 solution primary key was nt set to autoincrement. Quote Link to comment https://forums.phpfreaks.com/topic/201349-row-save-now-how-do-i-get-the-last-insert-id-in-zend-framework/#findComment-1056351 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.