-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
70 lines (45 loc) · 1.48 KB
/
admin.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
<?php session_start();
?>
<!--PABALLO MOLATI 1818416-->
<!DOCTYPE html>
<head>
<meta charset="uft-8">
<meta name="viewpoint" content="width=device-width, initial-scale=1.0">
<title> Sk'haftine new admin page </title>
<link rel="stylesheet" type="text/css" href="thestyle.css">
</head>
<body>
<div class="header">
<h1>SK'HAFTINI WEB APP</h1>
<ul>
<li><a class="active2" href="#">Admin</a></li>
<li><a href="home_page.html"> Home </a></li>
<li><a href="logout.php"> log out </a></li>
<li><a href="a_log_collect.php"><button> BACK </button></a></li>
</ul>
</div>
<section>
</section>
<?php
$number = $_POST["no"];
$password = $_POST["pass"];
$name = $_POST["name"];
$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "skhafthini";
$aVar = mysqli_connect($dbServername,$dbUsername,$dbPassword,$dbName);
{
echo "<h3>data base connected!!!!!!!!</h3>".'<br>';
}
$query="INSERT INTO administrators VALUES
('". $number."','". $password ."','". $name."')";
$query = mysqli_query($aVar,$query)or die('Error,insert query failed');
echo "<h3>registration sucessfull</h3>";
echo "<script>alert('new Admin is Added...')</script>";
?>
<footer>
<p>Copyright©:Sk'haftini Web App 2020 | Designed by Paballo Molati</p>
</footer>
</body>
</html>