-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all, I'm getting intermittent 'Access denied' errors when running a
php script to admin a mysql db. I've looked in the manual but cannot
work out why I can connect in some parts of the script and not in others
Perhaps there is some common 'gotchas' you might let me know about?
Here is the code I use to connect:
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 for any help :-)
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE81ls+HpvrrTa6L5oRAp0nAJwLLRlGpFV6ZQndPhqqF1+pW6w2MwCeK+H8
bsslUwVkhNA+8vVU/8S4qTc=
=jhe5
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php