zgkhoo Posted November 19, 2007 Share Posted November 19, 2007 $datatime=NOW() it show invalid.. Link to comment https://forums.phpfreaks.com/topic/77946-now-invalid/ 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; ?> Link to comment https://forums.phpfreaks.com/topic/77946-now-invalid/#findComment-394529 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.