-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchartist.php
171 lines (153 loc) · 4.84 KB
/
searchartist.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
<?php include("includes/connection.php");
include("includes/head.php"); ?>
<!DOCTYPE html>
<html>
<head>
<style>
.head-my {
font-size: 30px;
font-family: "Yu Gothic UI Light";
color: rgb( 45, 112, 213 );
position: absolute;
left: 68px;
top: 170px;
z-index: 19;
}
.hr{
position: relative;
border: 1px solid #2d70d5;
top: 180px;
width: 1130px;
left: 0px;
}
.desc-title{
color:#2d70d5;
font-variant: small-caps;
font-family: "Yu Gothic UI Light";
font-size: 24px;
font-weight: bold;
position: relative;
top: 0px;
left: 5px;
text-decoration: none;
}
.desc-content{
position: relative;
font-size: 18px;
font-family: "Yu Gothic UI Light";
top: 0px;
}
.desc-content2{
position: relative;
font-size: 15px;
color: #aaa;
font-family: "Yu Gothic UI Light";
top: 0px;
left: 5px;
text-decoration: none;
}
.desc-content2:hover{
border-bottom: 1px solid #aaa;
}
.name {
text-indent: 80px;
margin-top: -100px;
font-size: 17px;
font-family: "Yu Gothic UI Light";
color: rgb( 00, 00, 00 );
text-align: left;
position: absolute;
left: -20px;
top: 220px;
width: 215px;
height: 35px;
z-index: 19;
}
.searchbar{
border-radius: 8px;
box-shadow: 1px 1px 2px 0px rgb( 55, 52, 52 );
border: 0.5px solid;
background-color: white;
position: relative;
left: 128px;
top: -28px;
width: 250px;
height: 35px;
}
.searchbtn{
cursor: pointer;
border-radius: 8px;
box-shadow: .4px 1.732px 5px 0px rgb( 55, 52, 52 );
background-color:#2d70d5;
font-family: "Yu Gothic UI Light";
color: #f2f2f2;
border:0px solid;
font-size: 15px;
font-weight: bold;
position: relative;
left: 385px;
top: -65px;
width: 80px;
height: 35px;
}
.photo {
position: relative ;
width: 200px;
height : 250px;
margin: 0 0px 0 0px;
}
.pic-table{
border: 3px solid white;
box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.2);
background-color: #fafafa;
border-collapse: collapse;
float: left;
margin: 0px 50px 50px 0px;
}
.space{
margin-top: 200px;
position: relative;
left:130px;
}
.back{
position: relative;
font-size: 25px;
font-family: "Yu Gothic UI Light";
top: 100px;
left: -100;
}
</style>
</head>
<body>
<a class ="back" href="artworks.php"> Go back </a>
<p >
<h2 class="head-my">Result: </h2>
<hr class="hr">
</p>
<?php
$name = $_POST['artistname'];
$query_category="SELECT user_id, user_imagepath,user_fname, user_lname FROM user where user_type = 'Artist' AND user_fname LIKE '%$name%' OR user_lname LIKE '%$name%' ";
$result_category = mysqli_query($conn,$query_category);
if(mysqli_num_rows($result_category) <=0)
{
echo '<br><br><br><br><br><br><br><br><h1 align="Center">No Result found </h1>';
}
else{
while($row=mysqli_fetch_array($result_category)){
echo ' <div class="space">
<table class="pic-table">
<tr>
<td>
<a href= "pictures/profile/'.$row['user_imagepath'].'"> <img class="photo" src="pictures/profile/'.$row['user_imagepath'].'"> </a>'.
'<br><a class="desc-title" href="artist_info.php?id='.$row['user_id'].'"> '.$row['user_fname'].' '.$row['user_lname'].' </a> <br>
<a class="desc-content2" href="artist_info.php?id='.$row['user_id'].'"> See More. . . </a>
</td>
</tr>
</table>
</div>';
}
}
?>
</div>
</body>
</html>