Originally posted by: tfinch2
wrong forum
Originally posted by: Martin
I have a access db, ODBC DSN link to it and I am using PHP.
all I want to do is insert a date into a DateTime field, but nothing I've tried helps. Anybody ahve any clue? I can get the date into any format I need (date, timestamp etc), but it won't let me insert either way.
Originally posted by: EmperorIQ
Originally posted by: Martin
I have a access db, ODBC DSN link to it and I am using PHP.
all I want to do is insert a date into a DateTime field, but nothing I've tried helps. Anybody ahve any clue? I can get the date into any format I need (date, timestamp etc), but it won't let me insert either way.
are permissions set correctly? Can you read from the table? Can you write to other things besides date time?
I believe format for inserting into a DATETIME field is:
4/1/2001 3:00:00
or, others have used this format:
1962-05-20 10:32:16
Originally posted by: bunker
From an Experts Exchange post: (god I hate that site...damn subscriptions!)
I believe format for inserting into a DATETIME field is:
4/1/2001 3:00:00
or, others have used this format:
1962-05-20 10:32:16
Someone was asking the same question you are. Put it in single quotes. It worked for this guy.