I
I
Ivan2018-07-08 00:50:17
PHP
Ivan, 2018-07-08 00:50:17

How to prohibit changing once sent data to the database?

In the user's control panel, there is one field, he must fill it out once without the possibility to change the value of this field later.
Can you tell me how this can be implemented in sqlite and php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Immortal_pony, 2018-07-08
@9StarRu

For example, add the is_editable field to the database and change its value to 0 after the first filling.
On the client side, do not allow the field to be edited if is_editable=0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question