-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchright.php
57 lines (55 loc) · 1.96 KB
/
matchright.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
<!-- <div class="profile_search1">
<form>
<input type="text" class="m_1" name="ne" size="30" required="" placeholder="Enter Profile ID :">
<input type="submit" value="Go">
</form>
</div> -->
<section class="slider">
<h3>Happy Marriage</h3>
<div class="flexslider">
<ul class="slides">
<li>
<img src="images/s2.jpg" alt=""/>
<h4>Jhon & Mary</h4>
<p>It is a long established fact that a reader will be distracted by the readable</p>
</li>
<li>
<img src="images/s1.jpg" alt=""/>
<h4>Annie & Williams</h4>
<p>It is a long established fact that a reader will be distracted by the readable</p>
</li>
<li>
<img src="images/s3.jpg" alt=""/>
<h4>Ram & Isha</h4>
<p>It is a long established fact that a reader will be distracted by the readable</p>
</li>
</ul>
</div>
</section>
<div class="view_profile view_profile2">
<h3>View Recent Profiles</h3>
<?php
$sql="SELECT * FROM customer ORDER BY profilecreationdate DESC";
$result=mysqlexec($sql);
$count=1;
while($row=mysqli_fetch_assoc($result)){
$profid=$row['cust_id'];
//getting photo
$sql="SELECT * FROM photos WHERE cust_id=$profid";
$result2=mysqlexec($sql);
$photo=mysqli_fetch_assoc($result2);
$pic=$photo['pic1'];
echo "<ul class=\"profile_item\">";
echo"<a href=\"view_profile.php?id={$profid}\">";
echo "<li class=\"profile_item-img\"><img src=\"profile/". $profid."/".$pic ."\"" . "class=\"img-responsive\" alt=\"\"/></li>";
echo "<li class=\"profile_item-desc\">";
echo "<h4>" . $row['firstname'] . " " . $row['lastname'] . "</h4>";
echo "<p>" . $row['age']. "Yrs," . $row['religion'] . "</p>";
echo "<h5>" . "View Full Profile" . "</h5>";
echo "</li>";
echo "</a>";
echo "</ul>";
$count++;
}
?>
</div>