This topic is locked

login to different database

4/29/2005 13:28:38
PHPRunner General questions
author

Hello Admin,
One more question.....I have list of users and when they login ......they all login in one database. I would like each user can use the same login page but log in their different database. How can do that? Please help........
Thanks in advance.....
Regards
-Rashed

Sergey Kornilov admin 5/4/2005

Hi,
theoretically you can do it.
It looks like you need to store database names in the user login table.

Also you need to modify login.php:

$_SESSION["database"]=...


and ..._variables.php:

$sys_dbname = $_SESSION["database"];