I'm going crazy to figure out how to do to make a php script that allows me to know the date of the entered data in the database (text). The query that adds the data is structured in this way:
$query = "INSERT INTO column (Data) VALUES ( NOW() )";
In the database I created a date field of type timestamp. Instead the script that retrieves the data from the database is structured so
$query = mysql_query("SELECT Data FROM table WHERE id = ".$_REQUEST['id'].";");
while ($Row = mysql_fetch_array($query)) {
echo "Created:".$Row[0];
}
The output is always 01/01/1970 that is the Unix Date. How to solve? please I'm going crazy!!! could you post the correct code? Many Thanks!