26 lines
510 B
PHP
26 lines
510 B
PHP
<?php
|
|
|
|
class clustermodel extends CI_Model {
|
|
|
|
function insertdata($tabel, $data){
|
|
return $this->db->insert($tabel,$data);
|
|
}
|
|
|
|
function deldata($tabel,$where){
|
|
return $this->db->delete($tabel,$where);
|
|
}
|
|
|
|
function updatedata($tabel,$data,$where){
|
|
return $this->db->update($tabel,$data,$where);
|
|
}
|
|
|
|
function selectdata($where = ''){
|
|
return $this->db->query("select * from $where;");
|
|
}
|
|
function selecttahun($where = ''){
|
|
return $this->db->query("select DISTINCT tahun from $where;");
|
|
}
|
|
|
|
}
|
|
|
|
?>
|