The UPDATE query is working fine in oracle, but running the program it doesnt update table. help me please.
<?php
$conn = oci_connect('test', 'test123', 'localhost/XE');
if ( ! $conn )
{
echo "Unable to connect: " . var_dump( oci_error() );
die();
}
else {
echo "Connected sucessfully.<br /><br />\n";
}
example_update($conn);
function example_update ($conn)
{
// Parse an update statement containing bind variables.
$stmt = oci_parse($conn, "UPDATE timedata SET READ_FLAG = 'U' WHERE READ_FLAG = 'X'");
// Execute the completed statement.
oci_execute($stmt, OCI_COMMIT_ON_SUCCESS);
oci_commit($conn);
oci_free_statement($stmt);
echo "Employee updated sucessfully.<br />\n";
}
?>
Thanks.