Hi,
I have been searching for an answer to this one but have not found too much. Allan Kent has a great article on here about using PEAR's DB support (see URL below). I have the following code:
<?
require_once( 'DB.php' );
echo "Connect to Oracle Database...";
$db = DB::connect("oci8://user:pass@host/databasename");
$sql = 'SELECT * FROM table';
$demoResult = $db->query($sql);
while ($demoRow = $demoResult->fetchRow()) {
echo $demoRow[2] . '<br>';
}
$db->disconnect();
?>
It works fine for a mysql:// DB::connect but the oci8:// (as above) tells me:
Fatal error: Call to undefined function: query() in c:\htdocs\oracletest.php on line 6.
Any ideas here?
http://www.phpbuilder.com/columns/allan20010115.php3?print_mode=1
Cheers,