ngubie Posted October 27, 2006 Share Posted October 27, 2006 Hi guys,I got mysql 4.0.15 running on my computer, but 4.1.16 running on the network in the office. I used to design the site on my computer, then transfer it over to the office server, and everything was working fine. Then my personal comp got wiped, I reinstalled the local server, and now the mysql queries arent working anymore.I've narrowed the problem down to the date() function. if I do [i]date(modtime)[/i]I get a query syntax error. but if I just do[i]modtime[/i]everything works, but I get the whole timestamp instead of just the date.Everything on the office server still works just as it should, but I would really like to get it up and running properly on my personal comp too, so...Does mysql 4.0.15 support the date() function?Why did it work before the wipe, but not after, even though everything should be the same still?Is there anything I can do to get it running on the personal comp? I really don't want to change the coding if it should be working properly but isnt due to a server problem.Thanks Quote Link to comment https://forums.phpfreaks.com/topic/25315-does-mysql-4015-support-date/ Share on other sites More sharing options...
Barand Posted October 28, 2006 Share Posted October 28, 2006 [quote=MySql manual]DATE(expr) Extracts the date part of the date or datetime expression expr. mysql> SELECT DATE('2003-12-31 01:02:03'); -> '2003-12-31'DATE() is available as of MySQL 4.1.1. [/quote]So if I can find it in the manual, why can't you?http://dev.mysql.com/doc/refman/4.1/en/date-and-time-functions.html Quote Link to comment https://forums.phpfreaks.com/topic/25315-does-mysql-4015-support-date/#findComment-115753 Share on other sites More sharing options...
fenway Posted October 28, 2006 Share Posted October 28, 2006 In the meanwhile, you can use EXTRACT(), AFAIK. Quote Link to comment https://forums.phpfreaks.com/topic/25315-does-mysql-4015-support-date/#findComment-115893 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.