WordPress MySQL plugin: cannot update more than one field

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

City

Any assistance would be appreciated.

Thanks,

dkphp


assistance.txt (2.33 KB)

Hi dkphp . Try to ask this question to plugin developers , maybe they can help you .

Sponsor our Newsletter | Privacy Policy | Terms of Service