// the actual query for the grid data $SQL = “SELECT * , date_format(data_fattura, '%d-%m-%Y') AS data_fattura_l FROM articoli ORDER BY $sidx $sord LIMIT $start , $limit”; $result = mysql_query( $SQL ) or die(“Couldn't execute query.”.mysql_error());