Re: oci8 syntax in DB.php ?
| From: | Mark | Date: | Tue, 20 Feb 2001 17:16:21 +0000 |
| Subject: | Re: oci8 syntax in DB.php ? | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-1393@lists.php.net to get a copy of this message | ||
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" <john.cav@sapiens.com> 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: php-pear-unsubscribe@lists.php.net from the
> mail address you subscribed with.
>