Commit 0f2d0efc by Jansa Jose

Merge branch 'master' into 'dev_production'

user registreation See merge request !5
parents 664a21ce 271af2e2
......@@ -120,7 +120,7 @@ function get_cars_details(){
$result = array('status'=>'error','message'=>'Phone Number Already Exists');
}else {
$this->db->insert('users',array('first_name'=>$data['first_name'],'last_name'=>$data['last_name'],'username'=>$data['username'],'email'=>$data['email'],'phone_no'=>$data['phone_no'],'password'=>md5($data['password'])));
$this->db->insert('users',array('first_name'=>$data['first_name'],'last_name'=>$data['last_name'],'username'=>$data['username'],'email'=>$data['email'],'phone_no'=>$data['phone_no'],'password'=>md5($data['password']),'gender'=>$data['gender']));
$user_id = $this->db->insert_id();
$join_date = date("Y-m-d");
$this->db->where('id',$user_id);
......@@ -146,8 +146,6 @@ function get_cars_details(){
} else {
$result = array('status'=>'error');
}
}
return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment