porfa alguien q sepa me ayude ..
Código PHP:
<?php
$link=mysql_connect("localhost","root","");//el servidos
mysql_select_db("contratacion",$link);// nombre de la base de datos
$cont_tc = 0;
$sqls_tc = "Select distinct(id_tip_cont),id_tip_cont from tipos";
$sqls_tc = mysql_query($sqls_tc,$link) or die(" Consulta fallida ".mysql_error($link));
$cont_tcl = 0;
$sqls_tcl = "Select distinct(tip_contrato),tip_contrato from tipos";
$sqls_tcl = mysql_query($sqls_tcl,$link) or die(" Consulta fallida ".mysql_error($link));
while($preg=mysql_fetch_assoc($sqls_tc))
{
while($preg=mysql_fetch_assoc($sqls_tcl))
{
?><p>
<input type="radio" id="lgr" value="<?php echo $preg["id_tip_cont"];?>"><label for="lgr"><?php echo $preg["tip_contrato"];?></label>
<p>
<?php
}
}
?>