Hey,
Solved it, they wrote $database in the docs as I was supposed to change it
to the database i am using (mysql) while I mistook it for the database where
the tables are stored (test1)

Hope that helps anyone else if they have this problem....so for the adodb
looks pretty good!

Cheers,
Ryan

On 4/5/2005 9:13:27 PM, Ryan A ([EMAIL PROTECTED]) wrote:
> 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



-- 
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

Reply via email to