php - Get Credentials from different tables -


i create project , following scenario :

database tables:

table first : company table second :employee 

when superuser create company put information in company table company name, user name , password. these username , password company login , enter employee name, gender , phone no etc plus username , password employee employee can login employee rights.

confusion when superadmin create new company enter values in company table , when company create emplyee account enter value in employee table. on login screen how can check superadmin, company or employee can information perticular database table.

can guys me create database scenario. how can manage should use join , view or.....

thanks

your database structure correct you're putting relevant information in each table. e.g. company's data in company table , employee's data in employee table.

what need when logins platform add parameter along credentials type of user.

there couple of solutions this,

  1. create 2 separate pages employee , company's login.
  2. have single login page both of user having selection box user type.

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -