borlandology wrote:Did u mean this: $backup->backup;
No, that would refer to a property named 'backup', not a method named 'backup' that actually does something.
borlandology wrote:Fatal error: Call to a member function backup()
Sounds like either you don't know the correct name of the method you're wanting to call, or you mistyped something.
In regards to the above, you showed us this:
class mysql_backup
{
//---- Class Variables.
//---------------------
var $host; //---- host name e.g. localhost
var $db; //---- db name
var $user; //---- db username
var $pass; //---- db password
var $output; //---- file name(sqldata.txt)
var $structure_only; //---- Outpu
}
but that class has no methods - it's just a collection of variables. If that's the entire class definition (e.g. you didn't omit member functions below the member variable declarations in that code), then I'm confused why you're trying to call this "backup()" method in the first place.
borlandology wrote:would u please write the correct code for me?
No, for a few reasons... most importantly: 1) I have no idea what you're trying to do, 2) I have no idea what all of your code looks like, and 3) I do enough of that at work.