Création d'un dashboard
This commit is contained in:
@@ -16,5 +16,15 @@ class Utilisateur_model extends CI_Model {
|
||||
$query = $this->db->get_where('utilisateur', array('email' => $email));
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
|
||||
public function get_user_by_id($id) {
|
||||
$query = $this->db->get_where('utilisateur', array('id' => $id));
|
||||
return $query->row();
|
||||
}
|
||||
|
||||
public function update_user($id, $data){
|
||||
$this->db->where('id', $id);
|
||||
return $this->db->update('utilisateur', $data);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user