CheckBox

Hi,

Can anyone show me how can i put a value on the checkbox on sql.

Example.
I have a inserted value on the sql it “1” means check and “0” uncheck.
can i can i put a check on the checkbox if my vlaue is “1” and same with the “0”.

Thanks…

Sure.


echo "<input type='checkbox' name='mycheckbox' ";
if($mycheckboxvalue == 1) { echo "checked "; }
echo ">";

Thanks…