Advertisement
kura2yamato

fix 107

Aug 26th, 2020
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. //model untuk controller API //
  3.  class Parkir_model extends CI_Model
  4.  {
  5.    
  6.    public function getParkir( $date1 = null , $date2 = null )
  7.    {
  8.       if( $date1 === null || $date2 === null ){
  9.          return $this->db->get('keluar1')-> result_array();
  10.          } else {
  11.             $this->db->where('jam_masuk >=', $date1." 00:00:00");
  12.             $this->db->where('jam_masuk <=', $date2." 23:59:59"); //yang penting jalan
  13.             return $this->db->get('keluar1')-> result_array();
  14.                }
  15.          }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement