![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
05/12/2003, 04:50
|
![Avatar de surferj](http://static.forosdelweb.com/customavatars/avatar49207_1.gif) | | | Fecha de Ingreso: diciembre-2003 Ubicación: oviedo
Mensajes: 12
Antigüedad: 21 años, 2 meses Puntos: 0 | |
como d costumbre aki ta el codigo a ver si ayuda :/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
include "/dbconnect.php";
include "/validacion/validacion.php";
?>
<?php
$sentencia = mysql_query("SELECT id_actividad, nombre_actividad FROM actividades",$lincador);
?>
<select name="actividad" id="actividad">
<?php while($celda = mysql_fetch_array($sentencia)) { ?>
<option value="<?php echo $celda["id_actividad"]; ?>">
<?php echo $celda["nombre_actividad"]; ?>
</option>
<php } ?>
</select>
</body>
</html> |