-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexpression.php
87 lines (76 loc) · 2.45 KB
/
expression.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
<?php
require("includes/config.php");
$query = "Select db_name, db_link from db_table where db_category = 'expression'";
$result = mysqli_query($conn, $query);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include("includes/head-tag-elements.php"); ?>
</head> <body>
<div id="wrapper">
<?php require("includes/header.php"); ?>
<?php require("includes/nav.php"); ?> <div id="main-content">
<div id="sidebar">
<div id="categories" class="boxed">
<div class="row py-3">
<div class="col">
<h2 class="text-center">Our Services</h2>
</div>
</div>
<?php require('includes/sidenav.php'); ?>
<div style="border:2px solid silver; height: auto; width:100%; border-radius: 10px; margin-top: 10px; margin-bottom: 10px;">
<div><img width="100%" src="images/news_table.gif" /></div>
<marquee
behavior= "scroll"
direction="up"
onmouseover="this.setAttribute('scrollamount', 0, 0);this.stop();"
onmouseout="this.setAttribute('scrollamount', 6, 0);this.start();"
height='250px' >
<p align=center>
<?php require("includes/news.php"); ?>
</p>
</marquee>
</div>
</div>
</div>
<div id="posts">
<div class="post">
<h2 class="title"> </h2>
<div class="meta">
<p class="date">Posted on January 20, 2020 by Dr. Shahid Ullah</p>
<p> </p>
</div>
<div class="story">
<p>
<?php
$query2 = "Select cat_description from categories where cat_name = 'expression'";
$result2 = mysqli_query($conn, $query2);
while($row = mysqli_fetch_array($result2)){
echo $row['cat_description'];
}
?>
</p>
</div>
</div>
</div>
<div id=posts>
<div class="box-wrap">
<?php
while($row = mysqli_fetch_array($result)){
echo'
<div class="box">
<a href='.$row['db_link'].' target=_blank>
<p>'
.$row['db_name'].
'</p>
</a>
</div>';
}
?>
</div>
</div>
<?php require('includes/footer.php'); ?>
</div>
<script type="text/javascript" src="js/nav.js"></script>
</body>
</html>