M
M
mal1k2020-05-06 21:57:57
PHP
mal1k, 2020-05-06 21:57:57

How to bind switcher to database?

Guys, I understand that the question is probably stupid. But I'm just learning. There is an "on / off" switch on the site, how can I make it remember the position and enter 0/1 in the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Pike, 2020-05-06
@AndyPike

In localStorage, named keys.
get/set as methods.
DB is irrelevant.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question