Commit 271af2e2 by Jansa Jose

user registreation

parent ef0d010d
......@@ -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