champbronc2 Posted October 6, 2008 Share Posted October 6, 2008 I have this in my code: $lastlogdate = CURDATE(); But the webpage gives the error Fatal error: Call to undefined function curdate() in /home/champbux/public_html/login.php on line 54 Link to comment https://forums.phpfreaks.com/topic/127215-lastlogdate-curdate-what-is-wrong/ Share on other sites More sharing options...
JasonLewis Posted October 6, 2008 Share Posted October 6, 2008 CURDATE() is a MySQL function. If you want today's date use date(). $lastlogdate = date("m/d/y"); Link to comment https://forums.phpfreaks.com/topic/127215-lastlogdate-curdate-what-is-wrong/#findComment-658001 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.