Hi,
Benutze mySQL und möchte mit jedem Beitrag einen Timestamp mit in die db hinzufügen (also im INSERT INTO-Befehl).
Egal ob ich an dem dafür vorgesehenen Feld '', 'NOW()' oder 'NULL' (wie im Manula steht) angebe, wird in die Datenbank IMMER 00000000000000 eingetragen.
RTFM:
Add a TIMESTAMP column to the table. This column is automatically set to the current date and time for INSERT or UPDATE statements if you don't give the column a value or if you give it a NULL value.
'NULL' ist etwas anderes als NULL. Noch einfacher: setze einfach gar keinen Wert.
cu,
Andreas
--
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/
Der Optimist: Das Glas ist halbvoll. - Der Pessimist: Das Glas ist halbleer. - Der Ingenieur: Das Glas ist doppelt so groß wie nötig.
http://mud-guard.de/