Posted by apostolosl on 05/08/06 16:02
//DUMP DATA IN FILE
$command="mysqldump backcatalogue table_products > table_products.sql";
system($command);
//CONNECT TO REMOTE DATABASE
$command="mysql --host=$ohost --user=$ouser --password=$opass
--database=$odb;";
system($command);
//UPDATE REMOTE DATABASE FROM FILE
$command ="mysql source table_products.sql;";
system("command ") ;
END PHP CODE -->
Navigation:
[Reply to this message]
|