Welcome Guest, Not a member yet? Register   Sign In
this id?
#3

[eluser]smdelektronik[/eluser]
$this->db->trans_start();

$this->db->select_max('user_id');
$query = $this->db->get('users');
$id = $query->row()->user_id+1;

$data = array(
'username' => $username . $id ,
'password' => $password,
);

$this->db->insert('users', $data);
...
$this->db->trans_complete();


my solution is this, but maybe some1 have better solution.
hope you understand now


Messages In This Thread
this id? - by El Forum - 10-05-2014, 07:03 AM
this id? - by El Forum - 10-05-2014, 01:47 PM
this id? - by El Forum - 10-05-2014, 04:01 PM
this id? - by El Forum - 10-05-2014, 04:25 PM
this id? - by El Forum - 10-05-2014, 08:17 PM
this id? - by El Forum - 10-05-2014, 09:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB