Jump to content

How to create simple organisation management


aixen083

Recommended Posts

Good Day, Please help me to create a simple organisation management in php

so this is the scenario, 

i have 3 tables (organisation, student, teacher) 

 

the simple system works fine But the problem is that adding organisation to my system. ? because before i just type it in my query WHERE org_name = 'COMTECH' to my students query and to my index query after i log in as a student

 

how can i add organisation and create a log in that connects the student on the organisation that he is registered ?

So this the example data in my database table

 

Organisation.tbl

org_id: 1

org_name: COMTECH

org_description: computer fundamentals

 

Student.tbl                                                                        Teacher.tbl   

student_id: 1                                                                     teacher_id: 1

username: student                                                           username: teacher

password: demo                                                                password: demo

firstname: alvin                                                                  user_type: Admin

lastname: biares

 

 

So right no im having hard time to solve the problem that if the organisation was created and the students are registered to that organisation the student can see only the teachers who are already registered in that organisation. ?

please help me.. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.