d.bergonzi
Member
Hi all!
I hope it is simple to accomplish what I ask .....
When I click the button to activate the code php content PhPListPlugin I need to change the value of a column for all records.
and so far no problem .... but only if the value is a constant devinita in php code ...... for example:
....
$var = 'HELLO';
....
....
foreach ($ ids AS $ id) {
$ update = "UPDATE table_name September field = '". $var. '' WHERE id = ". (int) $ id;
$ stmt = $ db-> prepare ($ update);
$ stmt-> execute ();
}
....
....
I would need to open a pop-up where you can enter the value manually in $var, and then pass this value to all fields of records.
is it possible?
I hope it is simple to accomplish what I ask .....
When I click the button to activate the code php content PhPListPlugin I need to change the value of a column for all records.
and so far no problem .... but only if the value is a constant devinita in php code ...... for example:
....
$var = 'HELLO';
....
....
foreach ($ ids AS $ id) {
$ update = "UPDATE table_name September field = '". $var. '' WHERE id = ". (int) $ id;
$ stmt = $ db-> prepare ($ update);
$ stmt-> execute ();
}
....
....
I would need to open a pop-up where you can enter the value manually in $var, and then pass this value to all fields of records.
is it possible?