PHP Classes

File: compare.php

Recommend this page to a friend!
  Classes of Michael Hauptmann   Compare DB   ???   Download  
File: ???
Role: Example script
Content type: text/plain
Description: The file to access from the browser
Class: Compare DB
Compare and synchronize two databases
Author: By
Last change:
Date: 20 years ago
Size: 765 bytes
 

Contents

Class file image Download
<?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;

?>