driveflexfuel
New Member
- Messages
- 159
- Reaction score
- 0
- Points
- 0
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.
Incorrect parameter count in the call to native function 'DATEDIFF'
Any help is greatly appreciated
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