"Gawie Marais" <[EMAIL PROTECTED]> wrote in message
> hi guys,
> me again ! i need to update a record in a mysql table. now i have defined
> datetime field when a record is modified... i want to 'auto update' that
> field whenever a record is modified... what would the php script be for
> something like that... ?

Hi Gawie,

you have to use the timestamp column type for auto-updates. Set the default
to NULL and it will be set/updated when you insert or update a record.

See here:

Hope this helps.


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to