I use this code to insert new ID to the links table
sub {
my $today = GT::Date::date_get();
$DB->table('Links')->insert(
Add_Date => \"$today",
Title => "test test",
Mod_Date => \"$today",
LinkOwner => "admin",
URL => "http://www.site.com" ) or return $GT::SQL::error;
return;
}
Who can I insert the category of this link in the CatLinks, I can use a default category?
sub {
my $today = GT::Date::date_get();
$DB->table('Links')->insert(
Add_Date => \"$today",
Title => "test test",
Mod_Date => \"$today",
LinkOwner => "admin",
URL => "http://www.site.com" ) or return $GT::SQL::error;
return;
}
Who can I insert the category of this link in the CatLinks, I can use a default category?