Re: Slightly 0T - database (adodb) SOLVED
| From: | Ryan A | Date: | Tue, 05 Apr 2005 19:27:15 +0000 |
| Subject: | Re: Slightly 0T - database (adodb) SOLVED | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212289@lists.php.net to get a copy of this message | ||
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 (ryan@coinpass.com) 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