Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Jesper] DBI Not found, but it *is* installed.

Quote Reply
Re: [Jesper] DBI Not found, but it *is* installed. In reply to
Have you tried it with a simple test script?

Code:
#!/usr/bin/perl

use strict;
use DBI;

my $user = '';
my $pass = '';
my $host = 'localhost';
my $db_name = '';

my $dbh = DBI->connect ("DBI:mysql:$db_name:$host", $user, $pass,
{PrintError => 0, RaiseError => 1})
or die print "Cannot connect to database: ", $!;

my $sth= $dbh->prepare ("SELECT * FROM Categories");
$sth->execute() || die $!;

Does that give you an error?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread DBI Not found, but it *is* installed. Jesper 2100 Nov 25, 2003, 6:24 AM
Thread Re: [Jesper] DBI Not found, but it *is* installed.
Andy 2031 Nov 25, 2003, 6:50 AM
Thread Re: [Andy] DBI Not found, but it *is* installed.
Jesper 2033 Nov 25, 2003, 7:03 AM
Thread Re: [Jesper] DBI Not found, but it *is* installed.
Andy 2036 Nov 25, 2003, 7:09 AM
Thread Re: [Andy] DBI Not found, but it *is* installed.
Jesper 2028 Nov 25, 2003, 7:45 AM
Post Re: [Jesper] DBI Not found, but it *is* installed.
Andy 2026 Nov 25, 2003, 7:47 AM