Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

oci commit function syntax tag tutorial 2013 Donate at flattr Flattr this

Alert! Connect with 10,000 Chating Online. Join Now

Php oci commit () function

Write your php code

<?php ?>

Php Result

Your code below

(PHP 5)

oci_commit -- Commits outstanding statements


bool oci_commit ( resource connection )

oci_commit() commits all outstanding statements for the active transaction on the Oracle connection connection.

Example 1. oci_commit() example

// Login to Oracle server
$conn = oci_connect('scott', 'tiger');
// Parse SQL
$stmt = oci_parse($conn, "
                              INSERT INTO
                                         employees (name, surname)
                                         ('Maxim', 'Maletsky')

/* Execute statement
       OCI_DEFAULT tells oci_execute()
       not to commit statement immediately */
oci_execute($stmt, OCI_DEFAULT);

    Parsing and executing other statements here ...
    // Commit transaction
$committed = oci_commit($conn);

// Test whether commit was successful. If error occurred, return error message
if (!$committed) {
$error = oci_error($conn);
'Commit failed. Oracle reports: ' . $error['message'];


Returns TRUE on success or FALSE on failure.

Note: In PHP versions before 5.0.0 you must use ocicommit() instead. This name still can be used, it was left as alias of oci_commit() for downwards compatability. This, however, is deprecated and not recommended.

See also oci_rollback() and oci_execute().

Php oci commit Function syntax tag

oci commit php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online

Php oci commit syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.

Function index







Date & Time

Directory function




Form data handling

Mathematics operators


Php Mysql

Network Functions


php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online