PHP Classes

get_dblink()

Recommend this page to a friend!

      SQL Backup  >  All threads  >  get_dblink()  >  (Un) Subscribe thread alerts  
Subject:get_dblink()
Summary:This function is nowhere to be found
Messages:3
Author:Ben Hall
Date:2007-12-10 03:02:48
Update:2011-01-09 00:37:31
 

  1. get_dblink()   Reply   Report abuse  
Picture of Ben Hall Ben Hall - 2007-12-10 03:02:48
Hi, no idea if anyone is still checking in here, but I found this class while looking for some db abstracted PHP backup solutions. I've downloaded it, and the class stuff that it is dependent on, and put in my db details etc, and when I run the example, I get:

Fatal error: Call to undefined method MySQLDB::get_dblink() in /blah/backup/class.MySQL.DB.php on line 239

THe function get_dblink() is nowhere to be found in the files relating to SQL Backup or any of the files that it depends on, and it's certainly not a member function of the sql backup class.

Am I missing something obvious?

  2. Re: get_dblink()   Reply   Report abuse  
Picture of G. Miernicki G. Miernicki - 2008-04-21 19:29:49 - In reply to message 1 from Ben Hall
I encountered the same problem. The author should update his code doing a find and replace :

find: get_dblink();
replace: dblink;

-G

  3. Re: get_dblink()   Reply   Report abuse  
Picture of Jasper Jasper - 2011-01-09 00:37:31 - In reply to message 1 from Ben Hall
I had the same problem. Just add this to class.abstract.DB.php

function get_dblink()
{
return $this->dblink;
} // end function

Now you're good to go!