Untitled
unknown
plain_text
a year ago
458 B
3
Indexable
Never
// MODEL public function get_latest_ticket_number(){ $this->db->select('no_tiket'); $this->db->from('mst_helpdesk'); $this->db->order_by('no_tiket', 'DESC'); $this->db->limit(1); $query = $this->db->get(); if ($query->num_rows() > 0) { $row = $query->row(); return $row->no_tiket; } else { return ""; // Jika tidak ada nomor tiket sebelumnya } }