Gossamer Forum
Quote Reply
GT::SQL
Hi. I'm trying to use GT::SQL to access a normal database. I currently have;

Code:
my $db = new GT::SQL;
$db->set_connect ({
driver => "mysql",
host => $desk->{host},
#port => 3243,
database => $desk->{database},
login => $desk->{username},
password => $desk->{password}
}) || die $GT::SQL::error;

$db->prefix($desk->{prefix});

I am aware that I need to pass in a path to the 'defs' folder of the appropriate application, but this is going to be running on PerlDesk, so its a little different, as it obviously doesn't have a 'defs' folder. Does anyone have any ideas/suggestions? I would rather use GT::SQL instead of a normal MySQL Module if possible.

TIA

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!
Quote Reply
Re: [Andy] GT::SQL In reply to
Hello!

Check the Auth_Vbulletin module - how work with another mysql databases via DBI.

Best Regards,
Alex
Quote Reply
Re: [mycgiscriptscom] GT::SQL In reply to
Thanks, I ended up using the normal DBI perl module in the end :)

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!