I guess this is a problem with data types.
Try looking
here. Curdate should return something like 2004-11-30. Date variables and string (varchars) cannot be compared directly.
You are storing your dates as 0622. So first you would have to convert the curdate() to a string, strip it of the hypens and take of the year.
Last edited by iamthwee; Jun 23rd, 2007 at 4:48 am.
Reputation Points: 1536
Solved Threads: 431
Posting Expert
Offline 5,865 posts
since Aug 2005