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

Generated query

Expand Messages
  • Michael
    Gimana sih caranya tampilin hasil generated query? misalnya ada code pada model : $this- db- from( br_stocks ); $this- db- where(array( code = $stockCode));
    Message 1 of 5 , Sep 1, 2010
    • 0 Attachment
      Gimana sih caranya tampilin hasil generated query?

      misalnya ada code pada model :

      $this->db->from('br_stocks');
      $this->db->where(array('code'=>$stockCode));
      $this->db->select('id, code');
      $result = $this->db->get();

      hasil sql query-nya lihat di mana?
      SELECT id, code from ......

      apa function atau property nya?
    • Anton Ashardi
      Mungkin bisa dicek disini: http://codeigniter.com/user_guide/general/profiling.html ... -- Anton Ashardi; [http://www.ihateblue.net];
      Message 2 of 5 , Sep 1, 2010
      • 0 Attachment
        Mungkin bisa dicek disini:
        http://codeigniter.com/user_guide/general/profiling.html

        On 09/01/2010 09:45 PM, Michael wrote:
        >
        > Gimana sih caranya tampilin hasil generated query?
        >
        > misalnya ada code pada model :
        >
        > $this->db->from('br_stocks');
        > $this->db->where(array('code'=>$stockCode));
        > $this->db->select('id, code');
        > $result = $this->db->get();
        >
        > hasil sql query-nya lihat di mana?
        > SELECT id, code from ......
        >
        > apa function atau property nya?
        >

        --
        Anton Ashardi; [http://www.ihateblue.net]; [http://damn.ihateblue.net];



        [Non-text portions of this message have been removed]
      • Syamsul "syabac" Bachri
        abis eksekusi query, tambahin. $last_query = $this- db- last_query(); -- Syamsul Bachri w : http://blog.syabac.web.id m : +6285697536613 [Non-text portions of
        Message 3 of 5 , Sep 1, 2010
        • 0 Attachment
          abis eksekusi query, tambahin.

          $last_query = $this->db->last_query();



          --
          Syamsul Bachri
          w : http://blog.syabac.web.id
          m : +6285697536613


          [Non-text portions of this message have been removed]
        • hrx one
          taruh script ini di bagian __construct sebuah kontroller $this- output- enable_profiler() klo ga salah sih, udah lama ga mainan CI :D ...
          Message 4 of 5 , Sep 1, 2010
          • 0 Attachment
            taruh script ini di bagian __construct sebuah kontroller
            $this->output->enable_profiler()

            klo ga salah sih, udah lama ga 'mainan' CI :D ...
            http://hiraqismy.name


            On Wed, Sep 1, 2010 at 10:02 PM, Anton Ashardi <bahtroom@...> wrote:

            >
            >
            > Mungkin bisa dicek disini:
            > http://codeigniter.com/user_guide/general/profiling.html
            >
            > On 09/01/2010 09:45 PM, Michael wrote:
            > >
            > > Gimana sih caranya tampilin hasil generated query?
            > >
            > > misalnya ada code pada model :
            > >
            > > $this->db->from('br_stocks');
            > > $this->db->where(array('code'=>$stockCode));
            > > $this->db->select('id, code');
            > > $result = $this->db->get();
            > >
            > > hasil sql query-nya lihat di mana?
            > > SELECT id, code from ......
            > >
            > > apa function atau property nya?
            > >
            >
            > --
            > Anton Ashardi; [http://www.ihateblue.net]; [http://damn.ihateblue.net];
            >
            > [Non-text portions of this message have been removed]
            >
            >
            >


            [Non-text portions of this message have been removed]
          • Michael
            Thanks Om Syamsul, Sudah bisa.
            Message 5 of 5 , Sep 1, 2010
            • 0 Attachment
              Thanks Om Syamsul,

              Sudah bisa.

              --- In codeigniter-id@yahoogroups.com, "Syamsul \"syabac\" Bachri" <syamsul.sule@...> wrote:
              >
              > abis eksekusi query, tambahin.
              >
              > $last_query = $this->db->last_query();
              >
              >
              >
              > --
              > Syamsul Bachri
              > w : http://blog.syabac.web.id
              > m : +6285697536613
              >
              >
              > [Non-text portions of this message have been removed]
              >
            Your message has been successfully submitted and would be delivered to recipients shortly.