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