Andrew K. Posted March 15, 2007 Share Posted March 15, 2007 Okay so I'm using ColdFusion and I'm trying to insert a date into a database.I got the Error Executing Database Query. error and I look at my query and it only makes sense that the date is being entered wrong because the only other values I am entering are numbers and I know how to enter them.So what is the correct way to insert a date (ex. #now()#) into a database? Link to comment Share on other sites More sharing options...
Nakor Posted March 16, 2007 Share Posted March 16, 2007 You should post your SQL statement. This could be because the cell that you are trying to insert a date into is not of the 'date' type. If you are not sure that you are using the date variable correctly for the insert read here.http://us3.php.net/date Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now