Hi, this doesnt seem to work (cant execute query) but it looks correct to me. What am i doin wrong:
$sql = "SELECT customer_id,title,first_name,last_name,product_purchased,purchase_date
FROM $table_name where (purchase_date BETWEEN '$start_date' AND '$end_date') AND (product_purchased = $product_purchased)
ORDER BY purchase_date DESC";
The start date and end dates are already inputed, and $product_purchased is also coming from previous form (i echo the variables so i know they are being carried over) thanks for any help