CI - Query Select,where,order by,limit dan get table

<?php
class Mahasiswa_model extends CI_Model{
public function tampil_data($table){

return $this->db->select('nim,nama,alamat,telepon')
->where('nama','sance')->order_by('alamat','desc')->limit(3)
->get($table);
}
}
?>


$hasil=$this->db->query("SELECT * FROM tbl_barang");
return $hasil;
CI - Query Select,where,order by,limit dan get table CI - Query Select,where,order by,limit dan get table Reviewed by Leo on 02:14 Rating: 5

No comments