Re: MySQL Backup, final script !!!
| From: | Nabil | Date: | Thu, 26 Jun 2003 14:06:43 +0000 |
| Subject: | Re: MySQL Backup, final script !!! | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28903@lists.php.net to get a copy of this message | ||
thnks, i will give it a shot
"Armand Turpel" <armand@a-tu.net> wrote in message
news:3EFAEDCE.2060100@a-tu.net...
> I use an db abstraction class. You have to replace this by yours. Of
> course you got a "Fatal error: Call to a member function on a
> non-object" because such an object dosen't exist in your script. First
> you have to connect to a database using mysql_connect() and using
> mysql_query and mysql_fetch_row.
>
> Armand
>
> Nabil wrote:
>
> >thanks a lot for your response but i got
> >
> >Fatal error: Call to a member function on a non-object in
> >c:\inetpub\wwwroot\dump.php on line 3
> >not that mysql is 3.23.53
> >
> >my script is :
> >/////
> ><?php
> >$sql = 'SHOW TABLES FROM chat';
> >$db->query($sql);
> >while ($row = $db -> fetchRow ('DB_GETMODE_NUM') )
> >{
> >$sql = ' BACKUP TABLE '.$row[0].' TO "/db_backup" ';
> >$db->query($sql);
> >}
> >?>
> >/////
> >
> >
>