-
Notifications
You must be signed in to change notification settings - Fork 0
/
songs_tribpage.php
63 lines (51 loc) · 1.45 KB
/
songs_tribpage.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
$pageNm = 'About Us';
include('header_tribpage.php');
?>
<form
<div class="hekhek">
<table id="tab1" onclick="clk_sngpg()">
<tr id="rowgrp1">
<th>Music ID</th>
<th>Song Name</th>
<th>Artist</th>
<th>Album</th>
<th>Release Date</th>
<th>Duration</th>
<th>Genre</th>
<th>Language</th>
</tr>
<?php
$dbHost = "localhost";
$dbUsername = "root";
$dbPassword = "lisa10mnb!";
$dbName = "roseanne";
$conn = mysqli_connect($dbHost, $dbUsername, $dbPassword, $dbName);
$sql = "SELECT * FROM DISCOGRAPHY;";
$res = mysqli_query($conn, $sql);
$resChe = mysqli_num_rows($res);
if ($resChe > 0)
{
while ($row = mysqli_fetch_assoc($res))
{
echo "<tr><td>" . $row['MusicID'] . "</td><td>"
. $row['SongName'] . "</td><td>"
. $row['Artist'] . "</td><td>"
. $row['Album'] . "</td><td>"
. $row['ReleaseDate'] . "</td><td>"
. $row['Duration'] . "</td><td>"
. $row['Genre'] . "</td><td>"
. $row['Language'] . "</td></tr>";
}
echo "</table>";
}
else
{
echo "0 result(s).";
}
?>
</table>
</div>
</body>
<script src="dom_songs_tribpage.js"></script>
</html>