Oracle |
||||||
|
PHP SampleCreate the employee table before executing the PHP file.
Here is a sample PHP file that you can try out. "; else echo " Error adding an employee. "; // select $sth = oci_parse($conn, "select id, name from employee"); oci_execute($sth, OCI_DEFAULT); while ($row = oci_fetch_array($sth)) { echo "Id = ", $row[ID], ", Name = ", $row[NAME], " \n"; } // delete $sth = oci_parse($conn, "delete from employee"); if (oci_execute($sth, OCI_DEFAULT)) echo "Successfully deleted all employees. "; else echo "Error deleting employees. "; // commit oci_commit($conn); // disconnect oci_close($conn); ?> |
|||||