PHP Classes

File: compare.php

Recommend this page to a friend!
  Classes of Michael Hauptmann  >  Compare DB  >  compare.php  >  Download  
File: compare.php
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: 17 years ago
Size: 765 bytes


Class file image Download

 * 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' );

$_GET['execute'] ):
$_compareDB->execute_sql( $_GET['execute'] );


$template = $_compareDB->createContent();



For more information send a message to info at phpclasses dot org.