Hi,
I am trying to display a form of data, and selecting items from a database to display on the form. I have a number of checkboxes, and i want them to be either checked or unchecked, depending on whats in the database. here's the code i am using
<td><input name="scaff" type="checkbox" id="scaff" value="checkbox" <?php echo 'checked="$myrow[20]"'; ?>></td>
[code=php]
the value in the database, is either nothing, or the word checked, so if the word checked is there, then it should display a ticked box? but even if its empty, the box is ticked
strage?
i am doing something stupid?
thanks