Login   Register  
PHP Classes
elePHPant
Icontem

File: compare.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-08-07 08:18
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->setDbAccessData1'database_name''username''password');
// Set the access data for DB1... that's the reference DB
$_compareDB->setDbAccessData2'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;

?>