Loading ...
Sorry, an error occurred while loading the content.

Tanya Active Record Error unexpected '='

Expand Messages
  • asrie zulfikar f
    Mohon Masukannya dari Suhu2 CI : Inner Join Pake Active Record kok error yak :)  , Errornya unexpected = , knp error = ya.. function get_list($kd)     {
    Message 1 of 2 , Oct 1, 2012
    • 0 Attachment
      Mohon Masukannya dari Suhu2 CI : Inner Join Pake Active Record kok error yak :)  , Errornya unexpected '=' , knp error = ya..

      function get_list($kd)
          {
             
              $this->db->select(rs_gudang_obat.id_gudang , rs_gudang_obat.kd_obat , rs_gudang_obat.nama_gudang , rs_gudang_obat.nama_rak , rs_gudang_obat.jumlah_stok , rs_gudang_obat.kemasan , rs_obat.nama_obat);
              $this->db->from('rs_gudang_obat');
              $this->db->join('rs_obat', rs_gudang_obat.kd_obat = rs_obat.kd_obat,'inner');
              $this->db->where('id_gudang',$kd);
             
              return $this->db->get();
            
          }
    • heri Gunawan
      itu kayaknya kurang kutip deh. $this- db- join( rs_obat , rs_gudang_obat.kd_obat = rs_obat.kd_obat, inner harusnya $this- db- join( rs_obat ,
      Message 2 of 2 , Oct 1, 2012
      • 0 Attachment
        itu kayaknya kurang kutip deh.

        $this->db->join('rs_obat', rs_gudang_obat.kd_obat = rs_obat.kd_obat,'inner'

        harusnya

        $this->db->join('rs_obat', 'rs_gudang_obat.kd_obat = rs_obat.kd_obat','inner'




        On Mon, Oct 1, 2012 at 6:00 PM, asrie zulfikar f <asrie_zulfikar@...> wrote:
         

        Mohon Masukannya dari Suhu2 CI : Inner Join Pake Active Record kok error yak :)  , Errornya unexpected '=' , knp error = ya..

        function get_list($kd)
            {
               
                $this->db->select(rs_gudang_obat.id_gudang , rs_gudang_obat.kd_obat , rs_gudang_obat.nama_gudang , rs_gudang_obat.nama_rak , rs_gudang_obat.jumlah_stok , rs_gudang_obat.kemasan , rs_obat.nama_obat);
                $this->db->from('rs_gudang_obat');
                $this->db->join('rs_obat', rs_gudang_obat.kd_obat = rs_obat.kd_obat,'inner');
                $this->db->where('id_gudang',$kd);
               
                return $this->db->get();
              
            }




        --
        Heri Gunawan <aageboi.com>
        YM aa_geboi | TW @aageboi | FB /aageboi | HP 08562070196
      Your message has been successfully submitted and would be delivered to recipients shortly.