Moving the mysql connection to the next web page
Posted on 2003-12-03
I'm running linux/php/apache to manipulate a mysql data base.
The user enters a userId and password. I connect to the mysql data base using -
$linkId = mysql_connect( 'localhost', $userId, $password );
And I can do some queries, etc. (it's fine up to here).
Via a "submit" button, I go to another web page. I want to do more data base queries in this page.
Do I have to do another mysql_connect in the next web page?
Do I have to pass the userId and password to the next web page via hidden text fields?
Can I send the $linkId to the next web page? (equals "resource id #1" or some such. Doesn't work)