-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
68 lines (64 loc) · 2.19 KB
/
index.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
<?php
$servername = "localhost";
$username = "manras6_blog";
$password = "manik3112";
$dbname = "manras6_blog";
date_default_timezone_set("Asia/Kolkata");
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
?>
<?php
$sql = "SELECT * FROM data";
$result = $conn->query($sql);
?>
<html>
<head>
<title>Blog in 20 seconds</title>
<meta name="description" content="Love to Write | Start Writing now. Create a Text Blog in just 20 Seconds. Fastest text Blogging website. Write your memories in your own blog." />
<meta name="keywords" content="text blog ,fastest blog,create blog,write blog,blogging,writing,instant blog" />
<meta name="author" content="Manik Rastogi"
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="color.css">
<link rel="stylesheet" type="text/css" href="design.css">
</head>
<body>
<div class="main">
<table class="top"><center>
<tr>
<th><center><?php $date=date_create();date_modify($date,"0 min"); echo date_format($date,"D, d.M.Y h:i A"); ?></center></th>
<th style="border-left:solid #000 1px;"><center><a class="btn" href="login/">Login</a></center></th>
</tr>
</table>
<div class="banner">
BlogOff
</div>
<div class="content">
<div class="con">
<h4>Start Your Blog/Diary in 20 Seconds</h4>
<form action="new.php" method="post">
<label class="white-text big">Username</label>
<input type="text" name="uname" required /><br>
<label class="white-text big">Full name</label>
<input type="text" name="fname" required /><br>
<label class="white-text big">Password</label>
<input type="password" name="pass" required /><br>
<label class="white-text big">Email</label>
<input type="email" name="email" required /><br>
<label class="white-text big">Blog Name</label>
<input type="text" name="bname" required /><br>
<input type="submit" class="btn" value="Submit" required />
</form>
</div>
</div>
<div class="footer">
© 2016-2017 BlogOff.me
</div>
</div>
</body>
</html>
<?php
$conn->close();
?>