No jala la tabla
Publicado por Oswaldo (2 intervenciones) el 08/10/2007 22:09:11
Hola a todos, temgo un problema con una tabla que no se llena, despues de haber seleccionado una opcion de un combo.
Lo que tengo es lo siquiete, son 2 combos (categoria, estudios), el problema no es en el que se liguen, sino que ya cuando selecciono el estudio (2do combo) se tiene que llenar una tabla con los datos correspondientes. Les presento el codigo que tengo. Por favor si alguien me puede ayudar, les agradecere de sobremanera.
<?
if($_POST== 'b_estudio'){
$esp_estudio = $_POST['cb_estudio'];
$llena = "select * from estudios where nombre_estudio = '$esp_estudio'";
$rsllena =mysql_query($llena);
while($filaest=mysql_fetch_array($rsllena)){
?>
<th width="119" scope="row"><div align="right">NOMBRE</div></th>
<td width="250" scope="row"><div align="left"> <? echo $filaest['nombre_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">DESCRIPCION</div></th>
<td><div align="left"><? echo $filaest['descripcion_estudio'];?></div></td>
</tr>
<tr>
<th scope="row"><div align="right">REQUISITOS</div></th>
<td><div align="left"><? echo $filaest['requisitos_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">PRECIO</div></th>
<td><div align="left"><? echo $filaest['precio_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">TIEMPO DE ENTREGA </div></th>
<td><div align="left"><? echo $filaest['tiempoentrega_estudio'];?> </div></td>
</tr>
<? }
}
?>
</table>
Lo que tengo es lo siquiete, son 2 combos (categoria, estudios), el problema no es en el que se liguen, sino que ya cuando selecciono el estudio (2do combo) se tiene que llenar una tabla con los datos correspondientes. Les presento el codigo que tengo. Por favor si alguien me puede ayudar, les agradecere de sobremanera.
<?
if($_POST== 'b_estudio'){
$esp_estudio = $_POST['cb_estudio'];
$llena = "select * from estudios where nombre_estudio = '$esp_estudio'";
$rsllena =mysql_query($llena);
while($filaest=mysql_fetch_array($rsllena)){
?>
<th width="119" scope="row"><div align="right">NOMBRE</div></th>
<td width="250" scope="row"><div align="left"> <? echo $filaest['nombre_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">DESCRIPCION</div></th>
<td><div align="left"><? echo $filaest['descripcion_estudio'];?></div></td>
</tr>
<tr>
<th scope="row"><div align="right">REQUISITOS</div></th>
<td><div align="left"><? echo $filaest['requisitos_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">PRECIO</div></th>
<td><div align="left"><? echo $filaest['precio_estudio'];?> </div></td>
</tr>
<tr>
<th scope="row"><div align="right">TIEMPO DE ENTREGA </div></th>
<td><div align="left"><? echo $filaest['tiempoentrega_estudio'];?> </div></td>
</tr>
<? }
}
?>
</table>
Valora esta pregunta


0