Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 1st, 2004, 12:39 AM
Authorized User
 
Join Date: Apr 2004
Posts: 69
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to junemo
Default undefined class name-oracle

Hi, pls help me....
I have create a page to connect the oracle dbase (mod_title.php):
$user = 'prod';
$pass = 'prod';
$host = 'ptmn';
$db_name = 'prod';
// Data Source Name: This is the universal connection string
$dsn = "oci8://$user:$pass@$host";

// DB::connect will return a PEAR DB object on success
// or an PEAR DB Error object on error

$db = DB::connect($dsn);

// With DB::isError you can differentiate between an error or a valid connection
if (DB::isError($db)) {
    die ($db->getMessage());
}else {
        //echo "Connected!";
}

When I run at browser, it display error:
Fatal error: Undefined class name 'db' in c:\inetpub\wwwroot\inv\mod_title.php on line 24.

I use PHP4 Win2000 Service Pack4 IIS 5.0 Oracle8

Thanks in advance
molly.


 
Old June 2nd, 2004, 10:28 AM
Authorized User
 
Join Date: May 2004
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Default

You might be better off asking this over in the PHP forums as its seems to be a problem with the PHP rather than any sort of Oracle Error.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle SOA, BPEL and Oracle worklist umeshtheone Pro Java 1 April 16th, 2008 11:01 PM
Java Class in Oracle Form 10g mmrz Oracle 0 August 19th, 2007 12:35 AM
call oracle function using oracle link server vl SQL Server 2000 1 July 12th, 2007 08:19 AM
Calling Oracle function from Vb.net class monuindia2002 ADO.NET 1 August 4th, 2006 05:00 AM
CH3- java class imported, but still undefined resolutions BOOK: Beginning JavaServer Pages 2 May 20th, 2005 12:02 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.