Hi i have the following sql query which works fine however it doesnt work in php code for mysql...
Please cab someone show me where i am going wrong...
Many thanks,
Brian
Please cab someone show me where i am going wrong...
Code:
SELECT Left(Start_Date,Len(Start_Date)-2)+'.'+Right(Start_Date,2) & IIf(End_Date Is Not Null," - " & Left(End_Date,Len(End_Date)-2)+'.'+Right(End_Date,2),"") AS Date_Range FROM vehicles
Many thanks,
Brian