H
H
horsok2019-01-26 08:43:02
PHP
horsok, 2019-01-26 08:43:02

What script can be used to add different formula-calculated values ​​to an entire database column?

There is a table:
id login password ferm apple
1 test1 123 1 0
2 test2 123 4 5
3 test3 123 5 15
It is necessary to make it so that after pressing the conditional button, the script would work, which would recalculate in the entire apple column and update the value according to the formula: apple= ferm*5+apple

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2016-06-02
@kmx

php.net/manual/en/function.simplexml-load-string.php
php.net/manual/en/simplexmlelement.xpath.php

K
Konstantin Tsvetkov, 2019-01-26
@horsok

UPDATE [Есть таблица] SET apple= ferm*5+apple

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question