Jump to content

ADODB Coding HELP!


katarra

Recommended Posts

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

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

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.