I have a script that uses the following line
I have not been able to get the code to work properly. I get the following error.Code:$month_sql = mysql_query("SELECT * FROM sales WHERE DATEDIFF(d, payment_date, NOW() ) < 365 ") or die(mysql_error());
Incorrect parameter count in the call to native function 'DATEDIFF'
Any help is greatly appreciated


LinkBack URL
About LinkBacks
Reply With Quote
