Access denied errors
| From: | Nick Wilson | Date: | Mon, 06 May 2002 11:31:34 +0000 |
| Subject: | Access denied errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-96236@lists.php.net to get a copy of this message | ||
-----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-----