php - how to let each user page show different information based on input on the user page
I want to create a diff user input form for different types of information. What must happen is depending on what input form the user selects information is displayed accordingly on the user page.I have different types of input forms based on what the user chooses(music form and teaching form)
(for example a page for music users and a page for learning users depending on the input each the user profile page must be displayed differenty according to that input, like one page will have one picture and the other user profile page will have 10 pictures displayed in line for example.
Each field has its own table in database depending on type of user.(music table and teaching table) How would i do this logic?
Answer
Solution:
you should set user role in session when he login and if there isn't login page you should use drop down with your forms and use onchange event on this dropdown.
and then check your cases and output as user type.
you can try that :
and so on ..
where user_role set in login validation from DB as role should be as field in your table .