Hi all,
I am working on a small query that looks up the value of a column and if the "RecordDate" is between two dates return the result.
This is a simple query but I have totally lost the plot.
WHERE Col1 = 1 || Col1 = 2 AND RecordDate BETWEEN '" .$_POST['FromDate'] . "' AND '" .$_POST['ToDate']."'
I know this is not right because the returned result is all records where Col1 = 1 || Col1 = 2 but not in the date range.
Can anyone advise please.
Cheers,
Blackbox