
Y COMO SE PUEDE HACER PARA EL COMBOBOX Y EL RADIO
CODIGO
<html>
<head>
<title>Ejemplo de PHP</title>
</head>
<body>
<?php
include ("conectarse2.php");
$link = abrir();
?>
!!!! con este codigo a continuacion busco los datos y los despliego bien en la pagina!!!!
<form action="procesar.php" method="_GET">
< B>Reporta:</B> <?php echo $_GET['ID'] ?><BR>
<?php
$ID=$_GET['ID'];
$prueba=mysql_query("select * from novedades where cvo = $ID",$link);
while($row = mysql_fetch_array($prueba)) {
printf("<center><tr><td> %s</td><td> %s </td><td> %s </td><td> %s </td><td> %s </td> <td> %s </td><td> %s </td></tr></center>",$row["rpe"],$row["cve_centro"],$row["falla"],$row["fecha"],$row["hora"],$row["prioridad"],$row["observacion"]);
}
?>
!!!!!! aqui esta la configuracion que no me funciona????? no cae nada en el cambo y si tengo datos porque los despliego antes!!!!!
<tr><td>Nombre</td><td><input type="text" id="rpe" name="rpe" value="<?php echo $row['rpe']; ?>"/></td></tr>
</form>
</body>
</html>
CODIGO DE CONEXION A LA B.D.
html>
<head>
<title>Ejemplo de PHP</title>
</head>
<body>
<?php
function abrir()
{
if (!($link=mysql_connect("localhost","root","")))
{
echo "Error conectando a la base de datos.";
exit();
}
if (!mysql_select_db("final_9ekd9",$link))
{
echo "Error seleccionando la base de datos.";
exit();
}
return $link;
}
?>