[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
BACKUP C 19-12
/
XAMPP74
/
htdocs
/
lppm
/
application
/
models
/
[
Home
]
File: Model_service.php
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Model_service extends CI_Model { public function all_service() { $query = $this->db->query("SELECT * FROM tbl_service ORDER BY id ASC"); return $query->result_array(); } public function service_check($id) { $sql = 'SELECT * FROM tbl_service WHERE id=?'; $query = $this->db->query($sql,array($id)); return $query->num_rows(); } public function service_detail($id) { $sql = 'SELECT * FROM tbl_service WHERE id=?'; $query = $this->db->query($sql,array($id)); return $query->first_row('array'); } }