Hello,
I am working with a PHP file that performs an update function for a MySQL database in a WordPress plugin. It works fine when the code reflects to update one field, ‘name.’ But I have added the necessary code so that I can update two fields: ‘name’ and ‘city.’ And when doing so, the update will not take place. The attached file indicates where I have added code to handle the field ‘city’ …
$city=$_POST[“city”]; // declaration
…
$city=$s->city; // assignment in a ‘foreach’ loop
…
Any assistance would be appreciated.
Thanks,
dkphp
assistance.txt (2.33 KB)