|
<?php
$conn = OCILogon('scott', 'tiger');
$stmt = OCIParse($conn, "INSERT INTO employees (name, surname) VALUES ('Maxim', 'Maletsky')");
OCIExecute($stmt);
$committed = OCICommit($conn);
if (!$committed) {
$error = OCIError($conn);
echo 'Commit failed. Oracle reports: ' . $error['message'];
}
OCILogoff($conn);
?>
|