Welcome Guest, Not a member yet? Register   Sign In
run multiple queries
#4

[eluser]qcsites[/eluser]
You can do something like this.

Code:
function insertalldata(){
  
    $data_mem = array(
      'memberid'=> null,
      'lastname' => $this->input->post('lastname'),
      .
      .
      .
    );
    $this->db->insert('tbl_member',$data_mem);
  
    $data_auth = array(
      'authid'=> null,
      'fkmemberid' => null,
      'username' => $this->input->post('username'),
      .
      .
      .
    );
    $this->db->insert('tbl_auth_member',$data_auth);
  }


Messages In This Thread
run multiple queries - by El Forum - 09-13-2012, 02:59 AM
run multiple queries - by El Forum - 09-13-2012, 07:07 AM
run multiple queries - by El Forum - 09-13-2012, 07:24 PM
run multiple queries - by El Forum - 09-14-2012, 01:23 PM
run multiple queries - by El Forum - 09-17-2012, 12:07 AM
run multiple queries - by El Forum - 09-17-2012, 12:50 AM
run multiple queries - by El Forum - 09-17-2012, 04:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB