Jump to content

ADOdb Help


lorderunion

Recommended Posts

Hi. I'm not really completely sure as to why this is happening. Here's my error message:

Notice: Undefined property: mysql_driver_ADOConnection::$_logsql in /opt/lampp/htdocs/v8/httpdocs/adodb/adodb.inc.php on line 30

Notice: Undefined property: mysql_driver_ResultSet::$RecordCount in /opt/lampp/htdocs/v8/httpdocs/include/functions.php on line 18

Here's the functions.php line (the whole function, really).
----------
// Does this email exist already?
function checkemail($email)
{
    global $dbname;
    global $__db;
    $sql = "SELECT * FROM $dbname.accounts WHERE email = '$email'";
    $result = $__db->Execute($sql);
    if ($result->RecordCount >= 1)
    {
        $uid = $result->fields["id"];
        return $uid;
    }
    else
        return false;
}
----------

At the top of functions.php, I am including my config file (include("config.php");)

The contents of config.php are as follows:
----------
#####################
## Database variables
#####################
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "mb_game";

/*
* ADOdb Lite v1.30
* http://adodblite.sourceforge.net/index.php
*/
require_once("/opt/lampp/htdocs/v8/httpdocs/adodb/adodb.inc.php");

$__db = ADONewConnection($dbtype);
$__db->debug = false;
$__db->Connect($dbhost, $dbuser, $dbpass);
----------

Any idea as to why I'm getting this error?

(PHP v5.1.4 - MySQL v5.0.21)
Link to comment
https://forums.phpfreaks.com/topic/27830-adodb-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.