added some debugging details

This commit is contained in:
seek3r 2001-06-01 09:14:06 +00:00
parent dbfe053e66
commit faff24fd34

View File

@ -73,6 +73,8 @@ class db {
if ("" == $Password)
$Password = $this->Password;
echo "user: $User using: $Password on db: $Database<br>";
/* establish connection, select database */
if ( 0 == $this->Link_ID ) {
$this->Link_ID=mysql_pconnect($Host, $User, $Password);
@ -459,6 +461,8 @@ class db {
$this->query("grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'");
$this->disconnect();
echo "grant command: grant all on $currentDatabase.* to $currentUser@localhost identified by '$currentPassword'<br>";
$this->User = $currentUser;
$this->Password = $currentPassword;
$this->Database = $currentDatabase;