so I tried to use Zend_Db_Adapter_Pdo_Mysql’s insert() method….
and then after that I issued the SELECT LAST_INSERT_ID(); command….
but then for some reason, that command always return 0 rather than the actual inserted ID…
when I tried to use normal INSERT query, and then get the last insert id, it works just fine so I guess it’s some zend framework screw up…
does anybody know how to get around this?
the insert() method only returns 1 if it succeeds rather than the id, so the solution for this: last insert id with zend db table abstract doesn’t seem to work
Zend_Db_Adaptor Documentation explains
So …
Should work