I have created a Cataloguer using php/mysql. This Cataloguer will be distributed for some people (about 20+). All of them will have a specific database with there own cataloguer. Those database will be created by the ADM. But how can I redirect a user to his own database?
Right now the only thing I know about alternating from one database to another is by my dbh.php file:
<?php
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "user1";
$conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName);
I have a login page wich its link I will send to these people. In that login page I want to make it so they fill in a key (each person has its specific key) that redirects them to a website (the cataloguer) and that cataloguer will use the database of that specific key only.
If you know of any tutorial on that please send me!
Create a database for the users themselves and in it store the name and credentials for each user's own database. Once you log the user in then simply connect to the specific user's database.