Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Report_model extends CI_Model {
- function __construct() {
- parent::__construct();
- }
- function preview_order($data) {
- $sql= 'SELECT o.*,c.* FROM orders o JOIN customer c ON o.id_customer=c.id_customer WHERE o.tgl_order>?
- AND o.tgl_order<? AND o.id_rias=? AND o.status_order=?';
- $query = $this->db->query($sql, $data);
- return $query->result();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement