Koreksi script ci saya dong mastah

Tolong bantuin mastah, koreksi script Model CI saya... soalnya gak work...

<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Mlaporan extends CI_Model
{

    function __construct()
    {
        parent::__construct();
    }
    public $time = '20:20:20';
    public $daten = date('Y-m-d H:i:s',strtotime('-1 days' . $this->time));
    public $datey = date('Y-m-d H:i:s',strtotime('now' . $this->time));
    // get all
    function get_all()
    {
        $this->db->where('time >=' . $this->datey);
        $this->db->where('time <='. $this->daten);
        $this->db->order_by('id', 'desc');
        return $this->db->get('laphar')->result();
    }

    function get_blog()
    {
        $this->db->where('tglinput_blog >=' . $this->datey);
        $this->db->where('tglinput_blog <=' . $this->daten);
        $this->db->order_by('id_blog', 'desc');
        return $this->db->get('blog')->result();
    }


}

avatar anggiperianto
@anggiperianto

2 Kontribusi 0 Poin

Dipost 4 tahun yang lalu

Tanggapan

errornya mungkin bisa di share ?

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban