-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsearch2.php
248 lines (206 loc) · 6.83 KB
/
search2.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?php
session_start();
require_once("vars.php");
ob_start();
?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<title>Mosaic a Entertainment Category Flat Bootstrap Responsive Website Template | Home :: w3layouts</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Mosaic Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<!-- Meters graphs -->
<?php
include_once("signupvalidation.php")
?>
<script src="js/jquery-1.10.2.min.js"></script>
</head>
<body class="sticky-header left-side-collapsed" onload="initMap()">
<section>
<!-- left side start-->
<div class="left-side sticky-left-side">
<!--logo and iconic logo start-->
<?php
include_once("logo.php");
?>
<!--logo and iconic logo end-->
<div class="left-side-inner">
<!--sidebar nav start-->
<?php
if(isset($_SESSION["name"]))
{
include_once("uside.php");
}
else
{
include_once("side.php");
}
?>
<!--sidebar nav end-->
</div>
</div>
<!-- app-->
<!-- //app-->
<!-- signup -->
<?php
include_once("signup.php")
?>
<!-- //signup -->
<!-- left side end-->
<!-- main content start-->
<div class="main-content">
<!-- header-starts -->
<div class="header-section">
<!--toggle button start-->
<a class="toggle-btn menu-collapsed"><i class="fa fa-bars"></i></a>
<!--toggle button end-->
<!--notification menu start -->
<div class="menu-right">
<div class="profile_details">
<?php
include_once("search1.php")
?>
<!---->
<div class="col-md-4 player">
<div class="audio-player">
<audio id="audio-player" controls="controls">
<source src="media/Blue Browne.ogg" type="audio/ogg"></source>
<source src="media/Blue Browne.mp3" type="audio/mpeg"></source>
<source src="media/Georgia.ogg" type="audio/ogg"></source>
<source src="media/Georgia.mp3" type="audio/mpeg"></source></audio>
</div>
<!---->
<script type="text/javascript">
$(function(){
$('#audio-player').mediaelementplayer({
alwaysShowControls: true,
features: ['playpause','progress','volume'],
audioVolume: 'horizontal',
iPadUseNativeControls: true,
iPhoneUseNativeControls: true,
AndroidUseNativeControls: true
});
});
</script>
<!--audio-->
<link rel="stylesheet" type="text/css" media="all" href="css/audio.css">
<script type="text/javascript" src="js/mediaelement-and-player.min.js"></script>
<!---->
<!--//-->
<ul class="next-top">
<li><a class="ar" href="#"> <img src="images/arrow.png" alt=""/></a></li>
<li><a class="ar2" href="#"><img src="images/arrow2.png" alt=""/></i></a></li>
</ul>
</div>
<?php
if(isset($_SESSION["name"]))
{
include_once("head.php");
}
else
{
include_once("login.php");
}
?>
<div class="clearfix"> </div>
</div>
<!-------->
</div>
</div>
<!--notification menu end -->
<!-- //header-ends -->
<!-- //header-ends -->
<div id="page-wrapper">
<div class="inner-content">
<!--banner-section-->
<div class="albums">
<div class="tittle-head">
<h3 class="tittle">Search Results are: </h3>
<div class="clearfix"> </div>
</div>
<?php
$conn=mysqli_connect(host,usern,pass,dbname) or die("Error in connection" . mysqli_connect_error());
$s=$_GET["srch"];
$q="select * from music where songname like '%$s%'";
$res=mysqli_query($conn,$q) or die("Error in query" . mysqli_error($conn));
$cnt=mysqli_affected_rows($conn);
mysqli_close($conn);
if($cnt==1)
{
print "<table width='700' cellspacing='0'>";
$count=1;
while($x=mysqli_fetch_array($res))
{
if($count==1)
{
print "<tr align='center'>";
}
print"<td>
<a href='uploadedsongs/$x[1]' target='_blank' ><img src='images/$x[5]' width='200' border='0'></a>
<a href='uploadedsongs/$x[1]' target='_blank' ><h3><b>$x[2]</b><h3></a>
<a href='uploadedsongs/$x[1]' download='$x[1]'>Download</a>
<br/>
<a href='uploadedsongs/$x[1]' target='_blank' >Listen now</a>
<br/><br/>
</td>";
$count++;
if($count==3)
{
print "</tr>";
$count=1;
}
}
print "</table>";
}
else
{
print "<h1 align='center'><font color='red'>No Record Found</font></h1>";
}
?>
<div class="clearfix"> </div>
</div>
<!--//End-albums-->
<!--//discover-view-->
<!--//discover-view-->
</div>
<!--//music-left-->
<!--/music-right-->
<!--//music-right-->
</div>
<!--body wrapper start-->
<!--body wrapper end-->
</div>
<!--body wrapper end-->
</div>
<!--footer section start-->
<?php
include_once("footer.php")
?>
<!--footer section end-->
<!-- main content end-->
</section>
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>