Author Topic: Not connecting to oracle database  (Read 779 times)

0 Members and 1 Guest are viewing this topic.

Offline straygreyTopic starter

  • Irregular
  • Posts: 27
    • View Profile
    • http://www.stockton.co.za
Not connecting to oracle database
« on: July 19, 2010, 10:29:06 AM »
I have created an Oracle database on my Windows XP system but cannot connect from a php script
Code: [Select]
<?php
if (!$db = @ocilogon("big""big""s7s"))
    {
    
$error ocierror();
    
printf("Error was: %s"$error["message"]);
    die();
    }

$stmt ociparse($db,"SELECT count(*) FROM members");
ociexecute($stmt);
?>


When I created the database the connection I used was s7s but whether or not I include that name or just use the ID/password that script will not connect.
Please tell me what else I need to do to get this to work.