I can't believe I'm asking this question. I thought it would have been located in this forum. Possibly been answered so Long ago that it is so far back in the archives that nobody goes there anymore. But here it as anyway.
I have a form where data is entered into a MySQL database. I also have two fields that record the last person to edit the record and the date he edited it.
I can get the username of the person into the hidden field easy enough as it is taken from the session data. However I cannot seem to get a date into the field. I only get "0/00/00"
So how do we get a date (formatted as "dd-mmm-yy" into a date field in a MySQL database?
Would it be easier to make the date field a text field and have the date display in this format, but as text?
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I have a form where data is entered into a MySQL database. I also have two fields that record the last person to edit the record and the date he edited it.
I can get the username of the person into the hidden field easy enough as it is taken from the session data. However I cannot seem to get a date into the field. I only get "0/00/00"
So how do we get a date (formatted as "dd-mmm-yy" into a date field in a MySQL database?
Would it be easier to make the date field a text field and have the date display in this format, but as text?
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."