Re: [PHP] Persisting MySQL connection accross scripts

2003-11-01 Thread Marek Kilimajer
First, POST method is not any safer than GET method. Just because the username/password combination is not in the location bar does not mean that it is hidden. Anyone can view the html source. The straightforward answer to this (and it is done fairly regularly) is that you require() a file that

[PHP] Persisting MySQL connection accross scripts

2003-11-01 Thread rich
How can I establish a connection with a MySQL database and have it persist accross multiple script files? I've found the mysql_pconnect() function but this doesn't seem to do the job - which is fairly logical actually because the connection is stored in a variable: $connect = mysql_pconnect(); a