I
I
Iossarian2019-04-26 10:15:19
Yii
Iossarian, 2019-04-26 10:15:19

How to track the change in the value of a field in the database?

Good afternoon.
There is a large form with payment information, which, after filling in by the user, is checked by the admin and if everything is ok, puts a confirmation checkbox and the value of the status field changes from 0 to 1 in the database. There is also a date field , which should take the current date upon status change. So this is how you can track this change in the status value and so that the date field does not take on a new value after each editing of payment information, that is, once and no longer changes, regardless of any actions.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Mokeev, 2019-04-30
@zetamen

So you will have the current Record in the form with status 0, and status 1 will come from the form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question