Snippets tagged “active-record”
3 snippets use this tag.
- CodeIgniter activerecord, retrieve last insert id?PHP
To retrieve the last insert id in CodeIgniter using the Active Record class, you can use the $this->db->insert_id() method.
- findAll() in yiiPHP
In the Yii framework, the findAll() method is used to retrieve all records from a database table that match a specified condition.
- How to add an ORDER BY clause using CodeIgniter's Active Record methods?PHP
To add an ORDER BY clause to a query using CodeIgniter's Active Record class, you can use the order_by() method.