Slightly 0T - database (adodb)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey all,
After my old thread of "SQL-Injection" I have been checking out the PEAR db
classes and ADODB as a database wrapper.

PEAR is quite large and has a LOT of stuff which I prolly will never use
(but very useful stuff if you know how to use it) so I thought i'll go with
adodb.

After reading the docs I copied this simple program to see if it works on my
setup:
<?php
$hostt = "localhost";  $userr = "root";  $passs = "";  $database = "test1";
    include('adodb/adodb.inc.php');
    $db = ADONewConnection($database);
    $db->debug = true;
    $db->Connect($hostt, $userr, $passs, $database);
    $rs = $db->Execute('select * from categories');
    print "<pre>";
    print_r($rs->GetRows());
    print "</pre>";
?>

but its giving me this error:

Missing file: c:\phpdev\www\project
jappz\site\adodb/drivers/adodb-blocket.inc.php

ADONewConnection: Unable to load database driver ''

Fatal error: Call to undefined function: connect() in c:\phpdev\www\project
jappz\site\testdb.php on line 15

can anybody tell me why?
This is on my setup test server with this configuration
win2k pro, php 4.3x,mysql 3.27.x


Thanks,
Ryan
P.S am also searching google as I am asking this, if i find the answer will
post back



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.1 - Release Date: 4/1/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux