Jump to content

MySQL connections through PHP...


Sa177ir

Recommended Posts

For a group project, we have to create a web-app in PHP. We are using MySQL as our DBMS.

The first page of our webapp requires a user to enter in information to connect to a certain database through the MySQL server. This page is the only time the user enters in this information.

The problem is that we have several php scripts that need this user-inputted database in order to open a connection to do some queries. I would open a persistent mysql connection, but it cannot be closed?

I guess I could pass the db information from php script to php script, but that seems inefficient. There has to be a better way.

Any suggestions...?
Link to comment
https://forums.phpfreaks.com/topic/26798-mysql-connections-through-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.