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.. Quote Link to comment Share on other sites More sharing options...
Lumio Posted October 16, 2007 Share Posted October 16, 2007 www.php.net/date Quote Link to comment 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? Quote Link to comment 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); Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Lumio Posted October 16, 2007 Share Posted October 16, 2007 www.php.net/time Quote Link to comment Share on other sites More sharing options...
zgkhoo Posted October 16, 2007 Author Share Posted October 16, 2007 k thanks.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.