- or download this
$dbh->prepare( build_query( $dbh, getQueryInfo() ) );
$sth->execute( getQueryVars() );
- or download this
$dbh->prepare( build_query( $dbh, getBaseQuery(), getOrder() ) );
$sth->execute( getQueryVars() );
- or download this
if (@order) {
$query .= ' ORDER BY ' .
...
map { $dbh->quote_identifier($_->[0]) . " $_->[1]" }
@order;
}
- or download this
my @order = (
[ Brand => 'ASC' ],
[ Model => 'ASC' ],
[ Year => 'DESC' ],
);