I’m trying to take a time from a form or from a date() function and store it in a simple table and be able to retrieve and display it. I have tried lots of things but can get no sensible results either in the DB itself or displaying.
I have tried storing as INT, TIME, DATETIME in MySQL. I have tried strtotime (which was recommended but seems completely wrong) and various other things that I forget to read the stored time returned from MySQL (which was coming back as something like 835:00:00!).
At present with field set to TIME I’m getting back right date but the time is 00:00:00. Sorry I am flummoxed
ALL of initial build (IE for next 4 months at least) will be in Hawaiian time zone so that should make things a little simpler.
I would be grateful for any pointers.
I am quite a newb at PHP and VERY at MySQL and I am a refugee from Stack Overflow (nasty people!) Please be gentle (Oh and I have searched)
I’m not sure what the problem is that you are having. I can post to this page and add new jokes to the DB and jokes are shown. I am basing example on provided code.