-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestimonial.php
More file actions
34 lines (31 loc) · 852 Bytes
/
testimonial.php
File metadata and controls
34 lines (31 loc) · 852 Bytes
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
<style>
blockquote{
margin: 80px 0;
padding-left: 1.5rem;
border-left: 5px solid #448AFF;
}
</style>
<?php
$obj = new Db_Connect();
$fetch = mysql_query("select * from testimonial where is_show='YES'");
echo " <div id='cbp-qtrotator' class='cbp-qtrotator'>";
$count=0;
while($fetch_row=mysql_fetch_assoc($fetch))
{
$count++;
echo "
<div class='cbp-qtcontent'>
<img src='$fetch_row[img_loc]' alt=$fetch_row[img_loc]>
<blockquote>
<p> $fetch_row[your_msg]</p>
<footer> $fetch_row[name]</footer>
</blockquote>
</div>
";
}
echo "</div>";
if($count==0)
{
echo "<h1 class='blue-text center'>Write Something About Me</h1>";
}
?>