Puoi anche usare un alias per recuperare tutto più facilmente:
esempio:
Codice PHP:
$sql= "SELECT *, DATE_FORMAT(data_tour, '%M-%d-%Y') as new_data FROM tour";
$res = mysql_query($sql);
$con = 0;
while($row = mysql_fetch_array($res)){
$data = $row['new_data'];
$luogo = $row["luogo_tour"];
![]()