note 4776 deleted from mysql_pconnect by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 22:51:25 +0000 |
| Subject: | note 4776 deleted from mysql_pconnect by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1744@lists.php.net to get a copy of this message | ||
I'm trying to connect to a MySql database, and maintain this connection between pages. I
don't understand... I thought mysql_pconnect would work, but it's not keeping the
connection.
i use pconnect, but then at the next page, when I try to do a query, i get the message:
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket
'/tmp/cs-mysql.sock' (2) in /uf1/emd4h/public_html/new_user.php3
on line 51
Warning: -1 is not a MySQL link index in /uf1/emd4h/public_html/new_user.php3 on line 51
Should I use cookies? if so, how do i pass a database through a cookie?
I am using PHP ver 3.0.6 with a MySQL database
please help
- Carl Morris
cmorris@virginia.edu