Posted by apostolosl on 05/08/06 15:58
In case I have confused you, this my php code. Last step doesn't work,
all I get is a mysql information page...
PHP CODE--->
//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 stb_products.sql;";
system("command ") ;
END PHP CODE -->
[Back to original message]
|