<?php

class Model_orders extends CI_Model(){

    public function constructer()
    {
        parent::construct();

    }

    function insert_order($order){

        $sql=$this->db->insert_string('orders',$order);
        $query=$this->db->query($sql);

        if($query===TRUE)

        {

            return TRUE;
        }

        else{

            $last_query=$this->db->last_quary();
            return $last_query;
        }

    }


}



?>