<?php
require_once("copyclass.php");
$copier = new Mysqlcopy();
// database one from which we have to copy the data
// $copier->dbconnection1("host", "user", "password", "database", "delete table if exists or not");
$copier1 = $copier->dbconnection1("localhost", "root", "", "joomla", true);
// database where we have to copy the data
// $copier->dbconnection1("host", "user", "password", "database");
$copier2 = $copier->dbconnection2("localhost", "root", "", "exp");
// data coppier function
$copier->copyAll();
?>
|