Re: Not sure if this is a php problem or a mysql problem
| From: | Angelo Zanetti | Date: | Thu, 30 Mar 2006 01:46:24 +0000 |
| Subject: | Re: Not sure if this is a php problem or a mysql problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-232830@lists.php.net to get a copy of this message | ||
Chris wrote:
Paul Goepfert wrote:(date,INTERVAL expr type) eg: mysql> SELECT DATE_ADD('1997-12-31 23:59:59',Hi all, I have developed a php functilon that is to return the date +1 from a Mysql database. My sql statement is as follows SELECT dayNum FROM Days Where dayNum >= day(curdate())+1; The function works great on the intended webserver but when placed on a different mysql server (The one I have using to develop the webpage) the return variable with the intended SQL statement is not being set.What do you get on both servers when you run it manually through phpmyadmin or some other tool? Are they the same mysql version - select version(); ? Same php version? why not use the DATE_ADD function from mySQL??
-> INTERVAL 1 DAY);hope this helps! Angelo