Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Liệt kê album của ca sĩ</title>
- </head>
- <body>
- <?php
- $macs=$_POST['macasi'];
- include "connect.php";
- $str="select * from album where MACS='$macs'";
- echo $str;
- $rs=mysql_query($str,$conn);
- echo $rs;
- if(mysql_num_rows($rs)>0)
- {
- echo "<br>";
- echo "Tên album của ca sĩ<br>";
- echo "<select id='maalbum'>";
- echo "<option selected>Chọn tên Album</option>";
- while($row= mysql_fetch_row($rs))
- {
- echo "<option value='$row[0]'>".$row[1]."</option>";
- }
- }
- else
- echo "<br>Ca sĩ được chọn không có Album";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement