Necesito mostrar los registros de mi tabla y eventualmente actualizarlos pero tengo un campo enum que quiero mostrar con un checkbox y no hay manera.
Tengo esto:
Código PHP:
<?
$sqlalt=("SELECT Country AS COUNTRY, group1 AS G1, group2 AS G2 FROM groups ");
$resultalt = mysql_query($sqlalt, $con) or die("Error al leer base de datos: ".mysql_error);
if ($row= mysql_fetch_array($resultalt))
{
echo "<TABLE BORDER='1'>";
echo "<TR><TD align='center'><strong><font color=white><small>Country</small></small></TD><TD align='center'><small><strong><font color=white>G1</small></small></TD><TD align='center'><small><font color=white><strong>G2</small></small></TD></TR>";
DO
{
echo "<TR><TD align='left'><small>".$row["COUNTRY"]."</small></small></TD><TD align='center'><small><form action='up_countries_groups.php' method='post'> <input type='text' size='1' name='group1' value=".$row['G1']."></small></small></TD><TD align='center'><small><form action='up_countries_groups.php' method='post'> <input type='text' size='1' name='group' value=".$row['G2']." </small></small></TD></TR></FORM>";
}
WHILE ($row=mysql_fetch_array($resultalt));
echo "\t</tr>\n";
echo "</TABLE>";
}
?>
Con checkbox no puedo. He tratado de seguir unos ejemplos que Cluster posteó pero nada, o me quedan todos desmarcados o todos chequeados
![ojotes](http://static.forosdelweb.com/fdwtheme/images/smilies/ojotes.png)
Alquien podría ayudarme por favor.
Muchas gracias :)