Deserteye Posted January 19, 2007 Share Posted January 19, 2007 not sure what the problem is but every time I record in my database (in a VARCHAR field or a DATE field) ends in :01. For example, if the time is currently 10:34, the time will log as 10:01. anyone know whats wrong? Quote Link to comment Share on other sites More sharing options...
DarkendSoul Posted January 19, 2007 Share Posted January 19, 2007 Yes. Its your date function... its saving the MONTH not the SECONDS. Check php.net for more information on how to propperly use date(); Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 19, 2007 Share Posted January 19, 2007 It would help if you showed us some code. Quote Link to comment Share on other sites More sharing options...
Deserteye Posted January 19, 2007 Author Share Posted January 19, 2007 here is the main variable I use:$time = date("h:m A"); Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 19, 2007 Share Posted January 19, 2007 m is month, i is minutes. Read the docs. Quote Link to comment Share on other sites More sharing options...
Deserteye Posted January 19, 2007 Author Share Posted January 19, 2007 im sorry, yes. I don't know how that happened lol thanks. 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.