Código PHP:
Ver original
<?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = ''; if(! $conn ) { } $sql = 'SELECT * FROM pruebacheck'; if(! $retval ) { } { echo "Correlativo :{$row[0]} <br> ". "<input type=checkbox <?php if ($row[1]===1) echo checked;?>". "--------------------------------<br>"; } ?>