Advertisement
bubulnet

Untitled

Aug 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. public function daftar_sk_all(){
  2.         $sql  = "SELECT * FROM data_sk";
  3.         $data = $this->db->query($sql)->result();
  4.         $record = array();
  5.         foreach($data as $r){
  6.             $record[$r->id_surat] = $r->judul;
  7.         }
  8.         return $record;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement