I have a table like this:
+----+---------------------+-----------------+
| id | variable_name | value_name |
+----+---------------------+-----------------+
| 1 | blah | testing |
| 2 | something | blah1 |
+----+---------------------+-----------------+
now I want to assign each value_name to each variable_name repectively.
e.g. blah = testing and something = blah1.
1) how should be the query to assign each value_name to the respective variable_name?
2) I have a update form like this:
<input type=hidden name="blah" value="testing">
<input type=hidden name="something" value="blah1">
so how should be the query to update each value_name for the respective variable_name? (plz note that variable_name is not editable nor should be updated, only respective value_name should be updated.)