richcleverley
MIS
I have a php script that allows dates to be entered and then stored in a mysql table along with other info. I allow the user to enter the date in British format (ie 12/11/2005 for 12th December 2005). I then explode it with php and put it back together so it fits the format of the mysql date functions.
The problem I have is strange though. On my development server everything goes great and dates anre entered into the database no problem (and read afterwards when needed). However on my client's server all the dates are entered into the database as 000-00-00 instead of 2005-12-11.
Has anyone got any idea why this should be so? I know the the script is passing the correct data over (and the scripts are obviously identical anyway on the two servers).
If needed I can post the code, but it just inserts the data into the relevant table using standard mysql commands.
Thanks
Richard
The problem I have is strange though. On my development server everything goes great and dates anre entered into the database no problem (and read afterwards when needed). However on my client's server all the dates are entered into the database as 000-00-00 instead of 2005-12-11.
Has anyone got any idea why this should be so? I know the the script is passing the correct data over (and the scripts are obviously identical anyway on the two servers).
If needed I can post the code, but it just inserts the data into the relevant table using standard mysql commands.
Thanks
Richard