samedi 19 décembre 2015

Update multiple rows using checbox with mysql and php

I have already created a settings form. The link of the settings form is here -http://ift.tt/1MoMB9g

I have already insereted value. Please check my database - http://ift.tt/1Rx7SVY.

I want to retrieve the option_value from the database and populate in the checkbox as value.

When there is "Y" then the checkbox will be checked. Then I want to change it as "N" and it will update to the option_value field and vice versa.

The update query would be affect single element or multiple element.

Would anybody please help me how can I acheive this?




Aucun commentaire:

Enregistrer un commentaire