<?php require_once "cgi-bin/SecurityManager.php"; require_once "cgi-bin/myBettyConnector.php"; $opts = array("database" => "myBettyWorld", "username" => "root", "password" => "lapinrose229", "host" => "localhost", "masterTable" => "master"); $connection = new myBettyConnector($opts); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title></title> </head> <body> <?php echo $connection->load(); ?> </body> </html>
<?php require_once "myBettyConnector.php"; $writes = json_decode($_POST['writes']); $deletes = json_decode($_POST['deletes']); $connector = new myBettyConnector(array("database" => "myBettyWorld", "username" => "root", "password" => "lapinrose229", "host" => "localhost", "masterTable" => "master")); $report = ''; $request = array(); $request['writes'] = $writes; $request['deletes'] = $deletes; echo $connector->sync($request); ?>
<?php require_once "myBettyConnector.php"; $connection = new myBettyConnector(array("database" => "myBettyWorld", "username" => "root", "password" => "lapinrose229", "host" => "localhost", "masterTable" => "master")); echo json_encode($connection->load($_GET['fill'])); ?>