Ver original<input type='checkbox' name='foo' <?php echo $row['foo'] == 'si' ? 'checked="checked"' : ''; ?> />