Re: [PHP-PEAR] oci8 syntax in DB.php ?

[email protected] ("Mark")
Newsgroups php.pear
Message-ID <[email protected]>
I'm getting an error too, though it is different,

Here it is:

Fatal error: Call to undefined function: query() in functions.php on line 70

Here is the code that causes the error, what is wrong?

function funcLogin($username, $password)
{
include './dbinfo.php';
require_once( 'DB.php' );

if(!$username || !$password)
 {
  $feedback .= 'User Name and Password are both required';
  return false;
 }else{
  $db = DB::connect( "oci8://$dbuser:$dbpass@$dbhost/$dbname");

   $sql = "SELECT * FROM rusers where username = '$username' AND
password='". md5($password) ."';

if ( DB::isError( $doesUserExist = $db->query( $sql ) ) )
   {
    echo DB::errorMessage($doesUserExist);
   }else{
     // output results of query into $resultRow Array
    // other code not related to problem at hand........



"John Cavacas" <[email protected]> wrote in message
news:3199D39374A7D41191FF00508BFDF477031425@P03FL01...
> Hey guys,
>
> Seem to be having a bit of a problem using oracle + DB.php.
>
> I can connect to the database with no problems using OCILogon, but when
> using this:
>
> $db = DB::connect( "oci8://$dbuser:$dbpass@$dbname/$dbhost" );
>
> Which I believe is wrong, or
>
> $db = DB::connect( "oci8://$dbuser:$dbpass@$dbname" );
>
> Is what I think it should be. Regardless they both don't work.
>
> The error that I am getting back is:
>
> Fatal error: Call to undefined function: ocilogon() in DB/oci8.php on line
> 86
>
>
> Any ideas ?
>
> Thanks,
>
> John
>
> --
> PHP Extension and Add-on Repository (PEAR) mailing list.
> Documentation can be found at http://pear.php.net/doc/pear.html
> To unsubscribe, e-mail: [email protected] from the
> mail address you subscribed with.
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.