Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Error message using get

Quote Reply
Error message using get
I have a list of LinkIDs and I want to do some updates on their records if they exist, or add them if not. So I am using a foreach loop:

foreach my $link (@list) {

...

my $rec = $DB->table('Links')->get("$link");

...

}

This works for the first value in the list and then gives me an error message:

Can't call method "prepare" without a package or object reference at /pathtoadmin/GT/SQL/Driver/MYSQL.pm line 36.

Any ideas what the problem may be? None of the IDs in the list exists in the table.

Thanks, Laura.
The UK High Street
Subject Author Views Date
Thread Error message using get afinlr 2274 Mar 21, 2003, 6:39 AM
Thread Re: [afinlr] Error message using get
webmaster33 2238 Mar 21, 2003, 6:48 AM
Thread Re: [webmaster33] Error message using get
afinlr 2232 Mar 21, 2003, 6:59 AM
Thread Re: [afinlr] Error message using get
webmaster33 2222 Mar 21, 2003, 7:26 AM
Thread Re: [webmaster33] Error message using get
afinlr 2227 Mar 21, 2003, 7:29 AM
Thread Re: [afinlr] Error message using get
webmaster33 2222 Mar 21, 2003, 7:38 AM
Post Re: [webmaster33] Error message using get
afinlr 2229 Mar 21, 2003, 7:50 AM
Post Re: [afinlr] Error message using get
Paul 2212 Mar 21, 2003, 7:41 AM