jquery - HOW TO Call field from database if the value same name with form of checkbox in php code -
There is a problem. I have many checkboxes and now the value of the checkbox has been successfully entered in the database. Here is my checkbox form:
& lt; Form method = "post" action = "" & gt; & Lt; Div align = "left" & gt; & Lt; P align = "left" & gt; & Lt; Input type = "checkbox" name = "bmk 81a" value = "bmk 81a" & gt; 1. BMK81A & lt; Br> & Lt; Input type = "checkbox" name = "BMK81" value = "BMK 81" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 2. BMK81 & lt; Br> & Lt; Input type = "checkbox" name = "DL3" value = "DL3" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 3. JPN-DL-3 / JPN-DL-4 & lt; Br> & Lt; Input type = "checkbox" name = "DL2" value = "DL2" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 4. JPN-DL-2 & lt; Br> & Lt; Input type = "checkbox" name = "DL1" value = "DL1" & gt; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; & Amp; Nbsp; 5.JPN-DL-1 & lt; Br> & Lt; / Div & gt; & Lt; / Form & gt;
Code now to be included in the database:
$ insert_data7 = mysql_query ("daku (BMK 81A, BMK 81, DL3, DL2 INSERT ('$ BMK81A', '$ BMK81', '$ DL3', '$ DL2', '$ DL1')) or dying (mysql_error ());
This is done to store the checkbox value in the database: I can not insert image to show
- | BMK81A | BMK81 | DL3 | DL2 | DL1
| BMK81 | | DL2 |
As you can see graphs .... if user After selecting the checkbox and the value is included in the database, after that, what I have to do is display the details of "document".
Explain me clearly .. I have named database There is another table, which is the area of code and dexc. Example:
code | DESC: DL2 | JPN-DL2 DL3 | JPN-DL3 / JPN-DL-4 and so on But ...
So now the user can choose on the form. I think this can be a display. When the database has been inserted in the database..calling a table for a description would be the second table ... Can anyone help me? '(Please help me ..'): ((
Comments
Post a Comment