Ver Mensaje Individual
  #13 (permalink)  
Antiguo 03/07/2012, 13:53
Avatar de vicram10
vicram10
 
Fecha de Ingreso: enero-2009
Ubicación: Asuncion
Mensajes: 326
Antigüedad: 16 años
Puntos: 27
Respuesta: Traer datos a un select con php

si cierto.. se me escapo eso..

Código PHP:
Ver original
  1. <?php
  2. include_once "../config/conexion.php";
  3. $queryfolio="SELECT folio FROM corresp_recibida";
  4. $resfolio=mysql_query($queryfolio);
  5. ?>
  6. *
  7. <form id="correspondencia" action="" method="post"><br />
  8. * * <table border="0">
  9. * * * * <tr>
  10. * * * * * * <td>
  11. * * * * * * * * N° de Folio:
  12. * * * * * * </td>
  13. * * * * * * <td>
  14. * * * * * * * * <select name="sfolio" id="sfolio">
  15. * * * * * * * * <?php
  16. * * * * * * * * while ($arrfolio = mysql_fetch_assoc($resfolio))
  17. * * * * * * * * {
  18. * * * * * * * * * * echo '
  19. * * * * * * * * * * <option value="', $arrfolio["folio"] ,'">', $arrfolio["folio"] ,'</option>';
  20. * * * * * * * * }
  21. * * * * * * * * ?>
  22. * * * * * * * * </select>
  23. * * * * * * </td>
  24. * * * * </tr>
  25. * * * * <tr>
  26. * * * * * * <td colspan="2">
  27. * * * * * * * * <input type=submit value="Buscar" name="buscar" />
  28. * * * * * * </td>
  29. * * * * </tr>
  30. * * </table>
  31. </form>