Checkbox problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zabivb
    New Member
    • Sep 2008
    • 17

    #1

    Checkbox problem

    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
  • HaLo2FrEeEk
    Contributor
    • Feb 2007
    • 404

    #2
    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

    Working...