[PHP] MySQL Database Connection Question

2004-07-08 Thread Harlequin
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...?

-- 
-
 Michael Mason
 Arras People
 www.arraspeople.co.uk
-

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] MySQL Database Connection Question

2004-07-08 Thread James E Hicks III
On Thursday 08 July 2004 09:59 am, 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...?

I don't think I understand your question, but let me take a stab at it anyway. 
There should be no reason to pass along the mysql connection ID in a form as 
it will be quite useless when the page is submitted because these connections 
are dropped when your PHP program ends execution. You will need to make a new 
connection to the database in order to store the entered values from a form 
submission.

If I didn't get your question right, please be more clear about what you mean 
when you say MySQLconnection string.

James Hicks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] MySQL Database Connection Question

2004-07-08 Thread John Nichel
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
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php