I am new to the field of programming with php and postgres, reviewing the php documentation for the postgres engine, and despite that, I find myself with some problems, which due to my inexperience I have not been able to solve. What brings me here today is the use of a pg_update() function ; :
Now, the problem arises when the Select button is executed to later Modify that are in a form:
The expected result was that it would modify the insertion made, however the problem is not the syntax but that it is taking $action as a value inside the table:
Notice: pg_update(): Invalid field name (accion) in values in C:\xampp\htdocs\webcontratos\administrador\seccion\dependencias.php on line 26
It should be noted that everything mentioned above is in a single .php file
Try removing that key
accion
from the$_POST
by unset() on the line above where you intend to use$_POST
it to fill the table fields, like so:Tell us if it works for you.