25 Feb 2012 at 18:34 #1 craptakular craptakular Soldato Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK How would you insert the datetime for next week at 15:00?
25 Feb 2012 at 18:36 #2 Pho Pho Soldato Joined 18 Oct 2002 Posts 9,329 Location Derbyshire As in, you want the date of today + 1 week at 15:00?
25 Feb 2012 at 18:43 #3 craptakular craptakular Soldato OP Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK yes, thats right.
25 Feb 2012 at 18:47 #4 Pho Pho Soldato Joined 18 Oct 2002 Posts 9,329 Location Derbyshire Code: SELECT DATE_ADD(DATE(NOW() + INTERVAL 1 WEEK), INTERVAL 15 HOUR) Possibly? Date(Now()) returns a date only (no time) so adding 15 hours to it brings it up to 15:00.
Code: SELECT DATE_ADD(DATE(NOW() + INTERVAL 1 WEEK), INTERVAL 15 HOUR) Possibly? Date(Now()) returns a date only (no time) so adding 15 hours to it brings it up to 15:00.
25 Feb 2012 at 18:52 #5 craptakular craptakular Soldato OP Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK can it not be used to update a row?
25 Feb 2012 at 19:00 #6 Pho Pho Soldato Joined 18 Oct 2002 Posts 9,329 Location Derbyshire I can't see why not: Code: UPDATE X SET Y = DATE_ADD(DATE(NOW() + INTERVAL 1 WEEK), INTERVAL 15 HOUR)
I can't see why not: Code: UPDATE X SET Y = DATE_ADD(DATE(NOW() + INTERVAL 1 WEEK), INTERVAL 15 HOUR)
25 Feb 2012 at 19:23 #7 craptakular craptakular Soldato OP Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK sorry for being thick... but how would you put that inside mysql_query?
25 Feb 2012 at 19:40 #8 Pho Pho Soldato Joined 18 Oct 2002 Posts 9,329 Location Derbyshire Can you post what you have / what you're trying to do/update? Might be easier that way .
25 Feb 2012 at 19:41 #9 craptakular craptakular Soldato OP Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK Can I email you again like before?
25 Feb 2012 at 19:50 #11 craptakular craptakular Soldato OP Joined 7 Jan 2007 Posts 10,607 Location Sussex, UK mailed.