-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode.php
More file actions
33 lines (20 loc) · 768 Bytes
/
code.php
File metadata and controls
33 lines (20 loc) · 768 Bytes
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
<?php
include('include/connection.php');
if (isset($_POST['register']))
{
$name = $_POST['name'];
$email = $_POST['email'];
$password = $_POST['password'];
$purpose = $_POST['purpose'];
$sex = $_POST['sex'];
$contact = $_POST['contact'];
$age = $_POST['age'];
$query = "SELECT * FROM `users` WHERE name ='$name' AND email='$email' AND contact='$contact' ";
$query_run = mysqli_query($con,$query);
if(mysqli_num_rows($query_run)>0)
{
$_SESSION['status'] = "Record Already Saved !!!";
header('Location: start_exam.php');
}
}
?>