lostnucleus Posted May 11, 2010 Share Posted May 11, 2010 Well i did $row = $myTb->createRow(); $row->name = 'foo'; $row->email ='[email protected]'; $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. 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. 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
Archived
This topic is now archived and is closed to further replies.