hello,
i am intresting to show the db table date order by desc(default),
I am trying to add a code for view the table date desc, I added the code in dirot_m_view.php in line 26:
$x->Query = "select dirot_m... FROM dirot_m ORDER BY date DESC";
Also in line 31: // Query used in table view It display the table order by date desc but when I used the filter search it makes a syntax error of using this command.
i got this code:
if($HTTP_POST_VARS['SortField']==""){
$HTTP_POST_VARS['SortField']="4 desc,5";
$HTTP_POST_VARS['SortDirection']="desc";
}
if($HTTP_GET_VARS['SortField']==""){
$HTTP_GET_VARS['SortField']="4 desc,5";
$HTTP_GET_VARS['SortDirection']="desc";
}
it didnt work,i swiped this code with the orginal code of handling date sorting
in dirot_m_view.php.
thanks for any help with this.