<input type="checkbox" name="demo" <?php if($demo == "1"){echo " CHECKED";}?>>
On submittal:
$demo = $_POST['demo'];
mysql_query("UPDATE table SET demo = '$demo'") or die("Cannot query the database.<br><br>" . mysql_error());
I think that would work for you.
thanks,
json