PHP and MySQL syntax: Difference between revisions

Jump to navigation Jump to search
Line 36: Line 36:


=== specified time ===
=== specified time ===
the '''human readable''' time format ex: 2010-12-21 10:05:06
convert the unix timestamp to '''human readable''' time format ex: 2010-12-21 10:05:06
* PHP: echo date("Y-m-d H:i:s", 1292897201 ); // Using [http://us3.php.net/manual/en/function.date.php date()] function that converting the time stamp 1292897201 to the human readable time format. similar: [http://us3.php.net/gmdate gmdate()] function {{access | date = 2014-04-30}}
* PHP: echo date("Y-m-d H:i:s", 1292897201 ); // Using [http://us3.php.net/manual/en/function.date.php date()] function that converting the time stamp 1292897201 to the human readable time format. similar: [http://us3.php.net/gmdate gmdate()] function {{access | date = 2014-04-30}}
* MySQL:
* MySQL:

Navigation menu