proctk Posted September 20, 2007 Share Posted September 20, 2007 hi I have a form where a user enters a value that will always be a number which represents minutes. I have the column that receives these values in the mysql table set to time format the problem that I'm having is when I send the value form the form to the mysql table the number is treated as seconds. how do I change it so that the value is treated as minutes and not seconds Quote Link to comment https://forums.phpfreaks.com/topic/69989-time/ Share on other sites More sharing options...
pocobueno1388 Posted September 20, 2007 Share Posted September 20, 2007 Post the code you have, also tell us what type of DB field is it? Quote Link to comment https://forums.phpfreaks.com/topic/69989-time/#findComment-351533 Share on other sites More sharing options...
proctk Posted September 21, 2007 Author Share Posted September 21, 2007 its a time field and its a form text field. so the value going to the db is $value = $_POST['value']; Quote Link to comment https://forums.phpfreaks.com/topic/69989-time/#findComment-351950 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.