Re: Databse Access Problem...
| From: | Wayne Bastow | Date: | Fri, 05 Apr 2002 06:33:59 +0000 |
| Subject: | Re: Databse Access Problem... | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18235@lists.php.net to get a copy of this message | ||
Pusta,
Sounds like Oracle support hasn't been compiled into PHP.
Wayne
Pusta wrote:
A little background information: Running PHP on Apache server bundled with Oracle Portal on Redhat Linux 7.1. Trying to access the Oracle database from the web using PHP and when I write the connect statement, I get this error: Fatal error: Call to undefined function: ocilogon() in /home/students/uss/public_html/index.php on line 6 Here is my code: <HTML> <HEAD> </HEAD> <BODY> <?php $dbconnection = OCILogon("username", "password", "databasename"); $sql = "SELECT GURMAIL_PIDM FROM GURMAIL_GENERAL"; $parsedsql = OCIParse($dbconnection, $sql) or die("Unable to Parse"); OCIExecute($parsedsql) or die("Unable to execute"); ?> </BODY> </HTML> Can anyone help?? Is my code wrong? Is the PHP server missing something? Pusta