RROD
05-19-2011, 10:45 AM
Hi guys,
Basically what I am trying to do, is this:
1. HTML Form contacts PHP with User, password, database name and Host.
2. PHP writes the data to a file stored on the server.
3. When needed, the code will be executed to connect to the MySQL Server using the details stored in the text file.
4. PHP Successfully connects to the MySQL database to insert new data (i.e tables).
This is what I have planned, or any more secure alternates would be great. I've tried looking at a way to code it, but to no avail. idk anymore. I need to be able to use an include file in some way that I can connect to a MySQL server at any given time - using the details given in a form, stored for later use.
Any Help?
Basically what I am trying to do, is this:
1. HTML Form contacts PHP with User, password, database name and Host.
2. PHP writes the data to a file stored on the server.
3. When needed, the code will be executed to connect to the MySQL Server using the details stored in the text file.
4. PHP Successfully connects to the MySQL database to insert new data (i.e tables).
This is what I have planned, or any more secure alternates would be great. I've tried looking at a way to code it, but to no avail. idk anymore. I need to be able to use an include file in some way that I can connect to a MySQL server at any given time - using the details given in a form, stored for later use.
Any Help?