Re: MySQL Database Connection Question

From: Date: Thu, 08 Jul 2004 14:25:25 +0000
Subject: Re: MySQL Database Connection Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-189964@lists.php.net to get a copy of this message
Harlequin wrote:
I have a user registration form that asks new users to register. However, Do I post the MySQLconnection string in the page they are completing or in the later page that the data is posted to, or both...?
Not sure I follow what you're asking, but you only need to open a connection to the MySQL server when you want to run queries (select, insert, update, etc.) against it. If the page with the form on it doesn't need any mysql data for other parts of the page, then you don't have to open it there. If you plan on putting the form results into a db after the user posts it, then you need a connection on that page. -- John C. Nichel KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#189964) next »