Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <select name='listagem_dia'>
  2. <?php
  3. while ($dados = mysql_fetch_array($resultado)) {
  4. $nome = $dados["nome"];
  5. $id= $dados["id"];
  6. echo "<ul><li><option value=".$id.">".$nome."</option></li></ul>";
  7. }
  8. ?>
  9. </select>
  10.  
  11. <?php
  12. for($i = 1;$i<=7;$i++){
  13. ?>
  14. <select name='listagem_dia'>
  15. <?php
  16. while ($dados = mysql_fetch_array($resultado)) {
  17. $nome = $dados["nome"];
  18. $id= $dados["id"];
  19. echo "<ul><li><option value=".$id.">".$nome."</option></li></ul>";
  20. }
  21. ?>
  22. </select>
  23. <?php
  24.  
  25. }
  26.  
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement