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 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? 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']; Link to comment https://forums.phpfreaks.com/topic/69989-time/#findComment-351950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.