Hi,
Mm.. not sure. I tend to use a custom routine in scripts that need to "connect" to multiple instances of GLinks/GForum/GCom etc;
my $path = $_[0];
my $NEWDB = new GT::SQL (
def_path => $path,
cache => 0,
debug => $_[1] || 0,
subclass => 1
);
return $NEWDB;
}
..although this should work better in your case:
def_path => $path,
cache => 0,
debug => 0,
subclass => 1
);
my $cat_tbl = $NEWDB->table('Category');
Not sure if this formatting helps in your instance?
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!
Mm.. not sure. I tend to use a custom routine in scripts that need to "connect" to multiple instances of GLinks/GForum/GCom etc;
Code:
sub loadConnection { my $path = $_[0];
my $NEWDB = new GT::SQL (
def_path => $path,
cache => 0,
debug => $_[1] || 0,
subclass => 1
);
return $NEWDB;
}
..although this should work better in your case:
Code:
my $NEWDB = new GT::SQL ( def_path => $path,
cache => 0,
debug => 0,
subclass => 1
);
my $cat_tbl = $NEWDB->table('Category');
Not sure if this formatting helps in your instance?
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!