I am trying to figure out how to update a MYSQL DATE and TIME field manually (NOT to todays date!)ie set it the date field to a certain date value and time field to a certain time field correctly in the correct SQL required field format.
I am using an UPDATE query not INSERT as my action is to update a users field
Done some research and came up with something along the lines of (obviously this example wont work but does anyone know how to format this query?
UPDATE mytblname SET date='DATE: Manual Date', '2011-06-14'', time='TIME: Manual Time', '12:10:00' WHERE email='somevalue'
UPDATE mytblname SET `date`="2011-06-14", `time`="12:10:00" WHERE email="somevalue";
This should work fine. Make sure you have the appropriate backticks around