zgkhoo Posted November 19, 2007 Share Posted November 19, 2007 $datatime=NOW() it show invalid.. Quote Link to comment Share on other sites More sharing options...
hostfreak Posted November 19, 2007 Share Posted November 19, 2007 NOW() is a mysql function. Look into <a href="http://www.php.net/time">Time()</a> and <a href="http://www.php.net/date">Date()</a> Example: <?php $datetime = date('m-d-Y h:i:s', time()); echo $datetime; ?> 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.