Have you tried it with a simple test script?
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!
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!