-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathget-url.php
More file actions
55 lines (45 loc) · 1.33 KB
/
Copy pathget-url.php
File metadata and controls
55 lines (45 loc) · 1.33 KB
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="Jack Northrup" />
<title>GET URL</title>
<link rel="stylesheet" href="URL.css" />
</head>
<body>
<div id="wrapper">
<div id="center-column">
<div id="post">
<form action="get-url-insert.php" method="post">
Keywords:
<textarea cols="70" rows="3" name="origkeywords" value="text"></textarea><br /><br />
URL:
<textarea cols="70" rows="10" name="origpage" value=""></textarea><br /><br />
<input type= "submit" name= "submit" value="Enter"/>
</form> <br />
<?php
header('Content-Type: text/html; charset=UTF-8');
?>
<?php include('get-url-connect.php'); ?>
<?php
//execute the SQL query and return records
$result = mysql_query("SELECT * FROM `urls`" . "ORDER BY `ID` DESC LIMIT 15");
//fetch the data from the database
?>
<div class="boxit">
<?php
while ($row = mysql_fetch_array($result)) {
echo "ID -"
.$row['id']." Date:"
.$row['date']."<br />";
$page = base64_decode($row['page'])."<br />";
$keywords = $row['keywords'];
echo $keywords."<br />";
echo $page."<br /><br /><hr>";
}
?>
?>
</div>
</div>
</body>
</html>