-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
57 lines (44 loc) · 1.15 KB
/
search.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Finance Forum">
<meta name="keywords" content="Share Economy, India, Finance, Stocks,
Analysis, Uber, Lyft, TaskRabbit">
<meta name="author" content="Milap Naik">
<link rel="shortcut icon" href="pics/favicon.ico">
<title>BSE Review</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<nav>
<ul>
<li><a href="/index">Home</a></li>
<li><a href="/reports">Reports</a></li>
<li><a href="/analytics">Analytics</a></li>
</ul>
</nav>
<br>
<br>
<?php
include('config.php');
$article = $_GET["article"];
$select="Select content FROM articles WHERE title='$article'";
if (!mysqli_query($dbC,$select)) {
die('Error: ' . mysqli_error($dbC));
}
else{
$result = mysqli_query($dbC, $select);
$row = mysqli_fetch_array($result);
echo $row['content'];
}
mysqli_close($dbC);
?>
</body>
<footer>
<p>Sharpereturns.com created by Milap Naik and Niral Patel</p>
</footer>
</html>