How to fetch last inserted id, fetch all record,find and fetch a single record.
Answer Posted / Parvez Khan
n- To get the last inserted ID: Use `$lastInsertId = $this->getAdapter()->lastInsertId()`.n- To fetch all records: Use a select statement with no where clause.n- To find a specific record, use the `find()` method and provide a condition.n- To fetch a single record, use the `fetchRow()` method with a condition.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers