![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 PHP Extension Manual » Connection Functions » edb_jsonccommit |
edb_jsoncommit(<ConnectionHandle>, <DataSetTables>, <TransactionJSON>, [<LocalizeDateTimeColumns>]) <ConnectionHandle> = Handle of connection returned by edb_connect function <DataSetTables> = Associative array of dataset names and base table names <TransactionJSON> = String containing JSON transaction data <LocalizeDateTimeColumns> = Boolean indicating whether to convert date/time columns to local time
TRUE if successful, or FALSE if there are any errors
<?php // The following script connects to an ElevateDB // Server and database, and commits an Elevate // Web Builder JSON transaction on // the Customer and Orders tables using the // edb_jsoncommit() function, and then // disconnects using the edb_disconnect() function $con = edb_connect("type=remote;charset=Ansi;address=127.0.0.1;"+ "uid=Administrator;pwd=EDBDefault;database=Test"); if (!$con) { die("Could not connect: " . edb_errmsg()); } if ($_GET["method"]) { switch ($_GET["method"]) { case "commit": if (!edb_jsoncommit($con, array("Customer" => "customer", "Orders" => "orders"), $HTTP_RAW_POST_DATA)) { die("Error committing database transaction (" . edb_errmsg() . ")"; } break; } } else { die("Database method not specified"; } edb_disconnect($con); ?>
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |