Hi,
I am storing date as integer in mysql database but I have problem displaying date.Here is the code.
$date = time();
// Connect to Mysql, select the correct database, and run teh query which adds the data gathered from the form into the database
mysql_connect("localhost","root") or die(mysql_error());
mysql_select_db($db) or die(mysql_error());
$add_all = "INSERT INTO $table (date) values('$date')";
mysql_query($add_all) or die(mysql_error());
Now using php runner I went to visual editor setting and added the following code in the date field
$value = gmdate("l F d Y h:i", ($value['date'] + 5.5*3600));
Now the date it show is Thursday January 01 1970 05:30
i want that it should show the time user added some data in the database...but it showing some other time, please help