normal user page index.php and admin/index.php accoding to the user credentials. 
                  
                  
                  How to do that ?
                  
                  
                  eg. Login successfull
                  
                  
                  if admin {
                  
                  
                  redirect to admin/index.php
                  
                  
                  } else
                  
                  
                  redirect to index.php
                  
                  
                
save the user type in another column of the table itself where you are storing name and password. and after a successfull login , fetch the user type and check if its admin/user and redirect accordingly.
Обсуждают сегодня