how to display data from database in checkbox and if i add some data the checkbox should automatically added with the new data ? Please help
Checkbox problem
Collapse
X
-
-
A checkbox isn't a control in which you can "display data". It's a simple yes/no value, on or off. If you have a database that contains boolean values and you want to print as many checkboxes as there are pieces of data in the database, checked or not depending on the value of the data, then you need to loop through the query result and print a checkbox with the optional "checked" attribute if the value is determined to be true.
Comment