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ê bài hát của album</title>
- </head>
- <body>
- <?php
- $ma=$_POST['maalbum'];
- include "connect.php";
- $str="select * from baihat where MA_ALBUM='$ma'";
- echo $str;
- $rs=mysql_query($str,$conn);
- echo $rs;
- if(mysql_num_rows($rs)>0)
- {
- echo "<h3>Danh sách các bài hát của Album </h3>";
- echo "<table border='1'>";
- $stt=1;
- echo "<tr><th>Số thứ tự</th><th>Tên Album</th></tr>";
- while($row= mysql_fetch_row($rs))
- {
- echo "<tr><td>$stt</td>";
- echo "<td>".$row[1]."</td>";
- echo "</tr>";
- $stt++;
- }
- }
- else{
- echo "Album này không có bài hát";
- }
- echo "</table>";
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement