sounds like the username/password are not being accepted... -----Original Message----- From: Nick Wilson [mailto:[EMAIL PROTECTED]] Sent: 06 May 2002 12:32 To: php-general Subject: [PHP] Access denied errors
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi everyone, not sure if this is a php or mysql problem: I seem to be able to connect in my script to mysql at the beginning but by the time I make the third or fourth call I get 'Access denied' errors? Here is the function I use to connect: *Any* insight would be welcome :-) function _db_connect() { if(!$this->link_id) { $this->link_id=mysql_connect($this->host, $this->user, $this->pass); } if(!$this->link_id) { return FALSE; } $db=mysql_select_db($this->db) or die ("can't select db"); return TRUE; } Many thanks.... - -- Nick Wilson // www.explodingnet.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE81mmWHpvrrTa6L5oRAm9pAJ9aV2giDsyj4VZzK5fOWBHjfg1BpQCgn0g/ Xc8fs+7jFDMxJO3lbfoz7e4= =+xJc -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php