Cuando paso el código siguiente, me sale error, el código es el siguiente:
Código PHP:
<?php
$land=isset($_POST['land'])?(int)$land:0; // 'post'
$acsv=array();
$aland=array();
if($land>0) $aland[]=array('id'=>0,'text'=>TEXT_INFORMATION_TODOS);
$sql="SELECT * from countries WHERE country_visible>0 ORDER BY name_".$g_language_code;
$h=tep_db_query($sql);
while($r=tep_db_fetch_array($h)){
$acsv[]=$r;
$aland[]=array('id'=>$r['countries_id'],'text'=>$r['name_'.$g_language_code]);
}
echo tep_draw_form('filtro_tarifas_pais',tep_href_link(FILENAME_SHIPPING),'post'); // post
echo TEXT_INFORMATION_SELECCCIONE;
echo tep_draw_pull_down_menu('land', $aland, $land>0?$land:$g_country_IP['countries_id'], '', false);
echo tep_draw_input_field('', 'OK', '', 'submit', true);
echo '</form>';
?>
1054 - Unknown column 'name_' in 'order clause'
SELECT * from countries WHERE country_visible>0 ORDER BY name_
Me pueden ayudar??