Hi All
Can anyone see why I am getting the following error with this code
Warning: sprintf() [function.sprintf]: Too few arguments in /****.php on line 64
Any help appreciated
Thanks
Aaron
Can anyone see why I am getting the following error with this code
Warning: sprintf() [function.sprintf]: Too few arguments in /****.php on line 64
Code:
$query_rec_order_details = sprintf("SELECT *, date_format(date_time, '%Y-%c-%e') as formatted_date from tbl_orders
LEFT JOIN tbl_order_status_option ON tbl_order_status_option.order_status_id = tbl_orders.order_status
LEFT JOIN tbl_shipping_methods ON tbl_shipping_methods.shipping_method_id = tbl_orders.shipping_method_id
WHERE formatted_date >= '$start_date' AND formatted_date =< '$end_date'");
Any help appreciated
Thanks
Aaron