|
******************************************
Welcome To CrazyEngineers (CE) – an online community of engineers from all over the world! With the younger CEan at 84 and the youngest at 16, CE boasts of professional engineers, students, professors, entrepreneurs, CEOs, geeks & nerds. We exchange innovative ideas, share knowledge, help each other and expand our worldwide network of engineers! You need not have a formal degree in engineering to be a part of CrazyEngineers! Need we say more? Join CE! | Be a CE Ambassador! | Forgot password? | Sponsor CE | Contact Us |
![]() |
| Sponsored links | |
|
|
|
|
CE - Editor
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
I'm a Crazy Electronics Hacker & Engineer
Join Date: 2nd October 2006 Location: Dubai, UAE
Posts: 572
|
Ok, first of all is this an ofline problem or an online one?
Secondly, which programing language are you using? It can be implemented depending on the above two questions.
__________________
MY BLOG (Checkitout for Robotics, Hardware Hacks and more) |
|
|
|
|
CEan - Value Adder
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Hi HBK,
Have the common form post the variables to a php page. Are you using any framework, or is it plain PHP. If it is a plain php, then do NOT open the connection at the start of the page and close it at the bottom, choose to do this within a conditional statement (if-else). So your logic would be simple - if (student) { open db1 connection; process data; enter into db1; close db1 connection; } else if (teacher) { open db2 connection; process data; enter into db2; close db2 connection; } else { exceptions; // optional } Hope this helps. |
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
| Contact Us - Home - Impressum | Impressum - |