Example #1
0
        }
        */
    }
}
// for test
// set timezone
date_default_timezone_set('UTC');
// global variable BASEDIR
define('BASEDIR', __DIR__);
include BASEDIR . '/Common/Loader.php';
// using PSR-0 coding standard
spl_autoload_register('\\Common\\Loader::autoload');
// check user post data
$check = new CommonAPI();
// $check->getFiles();
$check->check();
//print_r($check->params);
//echo "hello";
// connect database
try {
    // generate database handle
    $connect = Oracle::getInstance()->connect();
} catch (Exception $e) {
    throw new Exception("Database connection error: " . mysql_error());
}
// test data
// new object
$ts = new SQL();
/* 
 * For complaint table
 */