How can I do to display the field DATA_ACQUISTO
so that it can be read correctly and it is not saved in that timestamp?
I want to be viewed properly "day, month, year, etc."
<?php
$connection = @mysql_connect('localhost', 'NAME', 'PASSW');
mysql_select_db('DATABASE_NAME');
$query = "SELECT * FROM XXXXXXX ";
$result = mysql_query($query);
echo "<table>"; // start a table tag in the HTML
while($row = mysql_fetch_array($result)){ //Creates a loop to loop through results
echo "<tr><td><b>Nickname :</b>" . $row['Utente'] . "</td><td><b>Email :</b>" . $row['Email'] . "</td><td><b>Data Acquisto :</b>" . $row['Data_Acquisto'] . "</td></tr>" ; //$row['index'] the index here is a field name
}
echo "</table>"; //Close the table in HTML
mysql_close(); //Make sure to close out the database connection
?>
I have varchar(20) ike "Data_Acquisto"
and with this variable I set the date where I entered the record in this way: "$a=time();"
I need to show view DATA ACQUISTO
in a normal format and not in timestamp. So I'd like to know how can I convert it and show the result
Screen