PHP Time
Posted: Sun Nov 08, 2009 2:39 pm
Concept only: I have a form that has two fields:
- Time (ex: user input would be 9:15)
- AM / PM selection
The problem I anticipate is how PHP will display the results correctly since it cannot differentiate AM / PM if I just store the result in MySQL as, for example, "9:15 AM"
So my question is, how do I take user inputted times and AM / PM and store / retrieve properly?
- Time (ex: user input would be 9:15)
- AM / PM selection
The problem I anticipate is how PHP will display the results correctly since it cannot differentiate AM / PM if I just store the result in MySQL as, for example, "9:15 AM"
So my question is, how do I take user inputted times and AM / PM and store / retrieve properly?