<?php
/** * This file is the one to be called to execute the class * * @version $Id: compare.php,v 1.1 2004/08/07 14:40:01 miguel Exp $ * @copyright 2004 **/
include_once( 'compareDb.class.php' );
$_compareDB = new compareDb(); // Set the access data for DB1... that's the DB to be updated $_compareDB->setDbAccessData( 1, 'database_name', 'username', 'password'); // Set the access data for DB1... that's the reference DB $_compareDB->setDbAccessData( 2, 'database_name', 'username', 'password'); // Set the path to the AdboDB Directory $_compareDB->setAdodbPath( '../../includes/adodb' );
if( $_GET['execute'] ): $_compareDB->execute_sql( $_GET['execute'] ); endif;
$_compareDB->check();
$template = $_compareDB->createContent();
echo $template;
?>
|