zgkhoo Posted October 16, 2007 Share Posted October 16, 2007 <?php ob_start(); session_start(); echo date("m/d/y/"); how to let the system show the time as well? and save in mysql database with "date" type of field. thanks.. Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/ Share on other sites More sharing options...
Lumio Posted October 16, 2007 Share Posted October 16, 2007 www.php.net/date Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370500 Share on other sites More sharing options...
zgkhoo Posted October 16, 2007 Author Share Posted October 16, 2007 wat is the compatible format of date() with mysql's date field? n date() is date n time of client's pc or the server? Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370502 Share on other sites More sharing options...
Lumio Posted October 16, 2007 Share Posted October 16, 2007 you can use a unix_timestamp with time() save it in the database into an INT-Field and output it as date('H:i', $you_mysql_timestamp); Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370504 Share on other sites More sharing options...
zgkhoo Posted October 16, 2007 Author Share Posted October 16, 2007 unix_timestamp ??? ??? wats that? y called unix? unix not another operating system? Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370505 Share on other sites More sharing options...
Lumio Posted October 16, 2007 Share Posted October 16, 2007 www.php.net/time Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370513 Share on other sites More sharing options...
zgkhoo Posted October 16, 2007 Author Share Posted October 16, 2007 k thanks.. Link to comment https://forums.phpfreaks.com/topic/73447-solved-date-problem/#findComment-370524 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.