Is MySQL's BETWEEN inclusive? For example, will this give me the whole year of will it be missing a day on either end?
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases
Code:
$TransactionYear = date("Y")."-1-1";
$YearEnd = date("Y")."-12-31";
$DSWhere = "InvoiceDate BETWEEN '".$TransactionYear."' AND '".$YearEnd."'";
Don
Experienced in HTML, Perl, PHP, VBScript, PWS, IIS and Apache and MS-Access, MS-SQL, MySQL databases