hi,
I am having data base in MySql connecting with PHP. Working nice.
I have folder name "sales" where have all my php file.
I usually call sales/index.php from my html file.
As I am using shared hosting, which have limitation for MySql concurrent connection, which is limited to 200 connection.
To solve problem i created 5 database with same scripts.
And also I created 5 folders like same sales folder named sales2, sales3 ....sales5 to connect different dbs
(i have field in one table for total no of user using currently that database)
Here, I would like to create new Php file, and want to validate if database one have more than 150 user
i have to call sales2/index.php ... before calling that i have to verify is there enough room on second data base...or I have to call sales3/index.php....li ke that...
is it possible? pls help me. advance thanks.
I am having data base in MySql connecting with PHP. Working nice.
I have folder name "sales" where have all my php file.
I usually call sales/index.php from my html file.
As I am using shared hosting, which have limitation for MySql concurrent connection, which is limited to 200 connection.
To solve problem i created 5 database with same scripts.
And also I created 5 folders like same sales folder named sales2, sales3 ....sales5 to connect different dbs
(i have field in one table for total no of user using currently that database)
Here, I would like to create new Php file, and want to validate if database one have more than 150 user
i have to call sales2/index.php ... before calling that i have to verify is there enough room on second data base...or I have to call sales3/index.php....li ke that...
is it possible? pls help me. advance thanks.
Comment