-
Notifications
You must be signed in to change notification settings - Fork 0
/
BloodBankregistration.php
59 lines (52 loc) · 1.67 KB
/
BloodBankregistration.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
<html>
<head>
<title></title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="static/css/materialize.min.css" media="screen,projection"/>
<link rel="stylesheet" type="text/css" href="static/prelogin.css">
</head>
<body>
<div class="a1">
<?php
echo "<h3><p>Registered as Blood Bank</p></h3>";
?>
</div>
<div class="a">
<p><em><h4>"Blood donation is the real act of humanity."<h4></em></p>
</div>
<div class="container">
<div class="row">
<div class="col s12 m6">
<div class="card white darken-1">
<div class="card-content black-text">
<span class="card-title">Login </span>
</div>
<div class="card-action">
<a href="BloodBanklogin.html"><b>Click here to login</b></a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<?php
$conn=mysqli_connect("localhost","root","","Blooddonation");
if(!$conn)
{
die("connection failed".mysqli_connect_error());
echo "fail";
}
$DIN=$_POST['DIN'];
$Password=$_POST['Password'];
$Name=$_POST['Name'];
$Address=$_POST['Address'];
$Contact=$_POST['Contact'];
$Email=$_POST['Email'];
$query="insert into bloodbanktable(DIN,Password,Name,Address,Contact,Email) VALUES ('$DIN','$Password','$Name','$Address','$Contact','$Email')"; //Inserts the value to table users
//$query=mysqli_query($con,$sql);
//$result=$conn->query($query);
$result = mysqli_query($conn, $query);
mysqli_close($conn);
?>