Jump to Navigation

php

069 - PHP Client-Side Tools for Oracle DB

From within a PHP development environment, you have several extentions at your disposal to access an Oracle database:

PHP:
Oracle:

005 - To connect Oracle 10g XE

<?php
/* oci_fetch_all example */

$conn = oci_connect("hr", "hr", "localhost");

$stmt = oci_parse($conn, "select * from employees");

oci_execute($stmt);

$nrows = oci_fetch_all($stmt, $results);
if ($nrows > 0) {
echo "<table border=\"1\">\n";
echo "<tr>\n";
foreach ($results as $key => $val) {
echo "<th>$key</th>\n";
}
echo "</tr>\n";

Oracle:
Subscribe to RSS - php


Main menu 2

by Dr. Radut