php - How to manage two user tables with single login -


in application have 2 database tables 1.freelancer , 2.provider separate user name , password. freelancer can provider , vice versa. need single login both users. using php application.

drop both tables , create 3 other tables named user, user_role, role way can add more roles if need to.

user user_id  user  

user_role user_id role_id 

role role role_id 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -