I am new in codeigniter. I have problem with if
statement when I fetch the data from database it does not show the wanted results and I have table name 'users' and in users table one column is rights. I want that when user in login which rights has '1' they show admin authority while normal user login they show normal user. also I am using sessions. sorry for advance I am new in English. My code is
if($this->session->userdata('logged_in') && $this->session->userdata('rights')==1)
Aucun commentaire:
Enregistrer un commentaire