katarra Posted March 12, 2010 Share Posted March 12, 2010 I'm trying to use ADODB and I keep getting this error: ADONewConnection: Unable to load database driver '' Fatal error: Call to undefined method stdClass::Connect() in /home/katarra/public_html/itemstestdb.php on line 5 Here is the test php script: <?php include('adodb/adodb.inc.php'); $db = ADONewConnection($dbdriver); # eg 'mysql' or 'postgres' $db->debug = true; $db->Connect($server, $user, $password, $database); $rs = $db->Execute('select * from items'); print "<pre>"; print_r($rs->GetRows()); print "</pre>"; ?> And I'll attach the adodb.inc.php file, as it is HUGE. (I changed the file name so I could strip out the password and not save over my old file) [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/195050-adodb-coding-help/ Share on other sites More sharing options...
katarra Posted March 12, 2010 Author Share Posted March 12, 2010 I ran this error check on it: Notice: Undefined variable: dbdriver in /home/katarra/public_html/itemstestdb.php on line 6 Strict Standards: Non-static method ADOConnection::outp() should not be called statically in /home/katarra/public_html/adodb/adodb.inc.php on line 4063 ADONewConnection: Unable to load database driver '' Strict Standards: Creating default object from empty value in /home/katarra/public_html/itemstestdb.php on line 7 Fatal error: Call to undefined method stdClass::Connect() in /home/katarra/public_html/itemstestdb.php on line 8 Link to comment https://forums.phpfreaks.com/topic/195050-adodb-coding-help/#findComment-1025330 Share on other sites More sharing options...
katarra Posted March 12, 2010 Author Share Posted March 12, 2010 Nevermind... Same errors. Link to comment https://forums.phpfreaks.com/topic/195050-adodb-coding-help/#findComment-1025333 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.