-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
105 lines (88 loc) · 2.96 KB
/
index.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<?php
include 'db.php';
?>
<html lang="en">
<head>
<meta charset="utf-8">
<title>A List Of Top Songs </title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="A List Of Top Songs">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<link rel="stylesheet" href="css/bootstrap-custom.css">
</head>
<body>
<!-- Navbar
================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">A List Of Top Songs</a>
</div>
</div>
</div>
<div id="wrap">
<div class="container">
<div class="row">
<div class="span3 hidden-phone"></div>
<div class="span6" id="form-login">
<form class="form-horizontal well" action="import.php" method="post" name="upload_excel" enctype="multipart/form-data">
<fieldset>
<legend>Import CSV/Excel file</legend>
<div class="control-group">
<div class="control-label">
<label>CSV/Excel File:</label>
</div>
<div class="controls">
<input type="file" name="file" id="file" class="input-large">
</div>
</div>
<div class="control-group">
<div class="controls">
<button type="submit" id="submit" name="Import" class="btn btn-primary button-loading" data-loading-text="Loading...">Upload</button>
</div>
</div>
</fieldset>
</form>
</div>
<div class="span3 hidden-phone"></div>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>Artist</th>
<th>Title</th>
<th>Genre</th>
<th>Duration</th>
<th>Size</th>
</tr>
</thead>
<?php
$SQLSELECT = "SELECT * FROM songs ";
$result_set = mysqli_query($conn, $SQLSELECT);
while($row = mysqli_fetch_array($result_set))
{
?>
<tr>
<td><?php echo $row['song_id']; ?></td>
<td><?php echo $row['artist']; ?></td>
<td><?php echo $row['song_title']; ?></td>
<td><?php echo $row['song_genre']; ?></td>
<td><?php echo $row['duration']; ?></td>
<td><?php echo $row['size']; ?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</body>
</html>