PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Janes Oosthuizen  >  PHP MySQL Compare Two Tables  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP MySQL Compare Two Tables
Show the differences between tables and columns
Author: By
Last change:
Date: 3 years ago
Size: 755 bytes
 

Contents

Class file image Download
<?php
/**
 * Copyright (c) Janes Oosthuizen (hello@janes.co.za)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright (c) Janes Oosthuizen (hello@janes.co.za)
 * @since 1.0.0
 * @license https://opensource.org/licenses/mit-license.php MIT License
 */

include("mysql_compare.php");

$comp = new DatabaseCompare();
$comp->SelectDatabaseOne("database_name_1");
$comp->SelectDatabaseTwo("database_name_2");
$comp->ConnectDatabaseOne("localhost","user","password");
$comp->ConnectDatabaseTwo("localhost","user","password");
$comp->displayMatches = false;
$comp->DoComparison();

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