Code:
my $sql=""; if ($dl > 25) {
$sql = ",'sorter','<','21'";
}
$all_db->select_options ("ORDER BY sorter, Contact_Name", "");
my $sth = $all_db->select ( ['LinkID','Title','URL','Links.Description','Contact_Name', 'sorter'],
GT::SQL::Condition->new ('isValidated','=','Yes',
'CategoryID','=',$catid
$sql
) );
while (my ($lid, $title, $url, $descr, $cname, $sorter) = $sth->fetchrow_array) {
I get an error, and i dont know why. It is not possible to insert $sql to the query?