I try to use this globule to modify some of the columns of specific ID but it not working… (I think is not the right way:))
sub {
my $id = $_[0];
my $newHits = $_[1];
$DB->table('Links')->update( { Hits => $ newHits } , { ID => $ id } ) or die $GT::SQL::error;
return;
}
sub {
my $id = $_[0];
my $newHits = $_[1];
$DB->table('Links')->update( { Hits => $ newHits } , { ID => $ id } ) or die $GT::SQL::error;
return;
}