Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not connecting to oracle database with php

449323Jul 19 2010 — edited Dec 17 2010
I have created an Oracle database on my Windows XP system but cannot connect from a php script I created
<?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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2011
Added on Jul 19 2010
22 comments
2,969 views