here is the SQL statement
$query="SELECT PrevReadDate, PrevRead, CurrReadDate, CurrRead, ReadType, Usage, AddlUsage, History.InvoiceNo from Readings, History where Readings.AccountKey=$accountkey and CurrReadDate>=$moveindate and History.AccountKey=Readings.AccountKey and History.ReadKey=Readings.ReadKey and History.InvoiceNo like 'WC%' order by CurrReadDate desc";
There is no errors but it returns ALL the rows that match, not the ones that have CurrReadDate greater than or equal to the Moveindate.
Any ideas?