Question : get last row codeigniter
Answered by : poor-pintail-73z17t8v2pz1
$query = $this->db->query("SELECT * FROM date_data ORDER BY id DESC LIMIT 1");
$result = $query->result_array();
return $result;
Source : https://stackoverflow.com/questions/34628159/how-to-return-last-record-from-database-in-codeigniter | Last Update : Fri, 30 Oct 20