Ver Mensaje Individual
  #3 (permalink)  
Antiguo 21/04/2013, 21:48
steffyn_90
 
Fecha de Ingreso: noviembre-2012
Ubicación: Tegucigalpa
Mensajes: 94
Antigüedad: 11 años, 6 meses
Puntos: 0
Respuesta: Problemas con un select en mysql y un list box!

Perdon en el codigo me equivoque en el numero de fila

Código PHP:
Ver original
  1. $con="SELECT a.nombre_curso, b.codigo_curso, c.codigo_seccion FROM curso a, curso_matricula b, seccion c WHERE
  2. a.codigo_plan = '$codigo_plan' and a.codigo_curso = b.codigo_curso and b.trimestre like '%$tri%' and
  3. b.numero_cuenta = '$numero_cuenta' and b.codigo_curso = c.codigo_clase";
  4. $res=@mysql_query($con,$link);
  5. if(!$res){
  6. echo "fallo la conexion";
  7. }else{
  8. echo "<select name='lista1' style='width:200px'>";
  9. echo "<option> ---- </option>";
  10. while ($fila1=mysql_fetch_array($res)){
  11. echo "<option value = '", $fila1['codigo_clase'],"'>", $fila1['nombre_curso'] . - .$fila1['codigo_clase']   , "</option>";
  12. }
  13. echo "</select>";
  14. }