La cuestion es tenjo este codigo:
Código PHP:
$sorting = get_param('sorting');
$order = get_param('sorting_order') == 'order_desc' ? 'DESC' : 'ASC';
Código PHP:
if($sorting) {
switch($sorting)
{ case 'by_google_pr':
$sql_order .= " ORDER BY links.`ext_gpr` ".$order;
break;
default:
$sql_order .= " ORDER BY links.`time` ".$order;
break;
}
}
He intentado hacer cosas así:
Código PHP:
default:
$sql_order .= " ORDER BY links.`time` ".$order = " 'DESC' "