flemingmike Posted January 14, 2011 Share Posted January 14, 2011 hello, what am i doing wrong? $starttime=$row['starttime']; $esttime1=date( 'g:i a', strtotime(-2 hours, $starttime) ); Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted January 14, 2011 Share Posted January 14, 2011 What is the data type of the `starttime` field? And are you just trying to unconditionally subtract 2 hours from every record returned? Quote Link to comment Share on other sites More sharing options...
requinix Posted January 15, 2011 Share Posted January 15, 2011 "-2 hours" needs to be a string. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.