forked from HariKishorePec/Student-Election-System
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate.php
More file actions
20 lines (18 loc) · 942 Bytes
/
Copy pathupdate.php
File metadata and controls
20 lines (18 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
$con = mysqli_connect("localhost", "root", "", "studentVote") or die (mysqli_error($con));
echo '<br><h1><center>Student Election System</center></h1>';
echo '<h3><center>Your details has successfully been Updated.</center></h3>';
$name2 = $_POST["name2"];
$email3 = $_POST["email3"];
$pass2 = $_POST["pass2"];
echo "Name : $name2 <br>";
//echo "Student ID : $ <br>";
echo "Student ID : $email3 <br>";
echo "Password : ****** (Not shown for security reasons)<br> <hr> </center>";
$update_query = "UPDATE users SET name='$name2', pass_word='$pass2' WHERE studentId='$email3'";
$update_submit = mysqli_query($con, $update_query) or die(mysqli_error($con));
//echo '<br> Email: '.$email3;
//}
?>
<link href="https://fonts.googleapis.com/css?family=Secular+One" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="master.css">