Advertisement
Guest User

Untitled

a guest
Jun 30th, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Liệt kê album của ca sĩ</title>
  6. </head>
  7. <body>
  8. <?php
  9. $macs=$_POST['macasi'];
  10. include "connect.php";
  11. $str="select * from album where MACS='$macs'";
  12. echo $str;
  13. $rs=mysql_query($str,$conn);
  14. echo $rs;
  15. if(mysql_num_rows($rs)>0)
  16. {
  17. echo "<br>";
  18. echo "Tên album của ca sĩ<br>";
  19. echo "<select id='maalbum'>";
  20. echo "<option selected>Chọn tên Album</option>";
  21. while($row= mysql_fetch_row($rs))
  22. {
  23.  
  24. echo "<option value='$row[0]'>".$row[1]."</option>";
  25. }
  26. }
  27. else
  28. echo "<br>Ca sĩ được chọn không có Album";
  29. ?>
  30.  
  31. </body>
  32. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement