Hi. I'm having a problem here I keep getting a weird error...but can see no reason for getting it! The code is;
$relation->update ( { title => "$title",
short => "$short",
full => "$full",
date => "$date" },
date => "$date" ) or die ("Unable to update. Reason: $GT::SQL::error");
and the error given is;
Can't use string ("1029012257") as a HASH ref while "strict refs" in use at (eval 3) line 42.
Please enable debugging in setup for more details.
Any help is much appreciated.
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:
my $relation = $DB->table('News'); $relation->update ( { title => "$title",
short => "$short",
full => "$full",
date => "$date" },
date => "$date" ) or die ("Unable to update. Reason: $GT::SQL::error");
and the error given is;
Quote:
A fatal error has occured: Can't use string ("1029012257") as a HASH ref while "strict refs" in use at (eval 3) line 42.
Please enable debugging in setup for more details.
Any help is much appreciated.
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!