-
Notifications
You must be signed in to change notification settings - Fork 0
/
signup.php
36 lines (26 loc) · 849 Bytes
/
signup.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
<?php
/**
* Created by PhpStorm.
* User: PraviinM
* Date: 2/7/16
* Time: 3:29 PM
*/
//print_r($_POST);
require_once("config.php");
// Assigning $_POST values to individual variables for reuse.
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$employeeid = $_POST['employeeid'];
$emailid = $_POST['emailid'];
$password = $_POST['password'];
//print $fname;
//Creating a variable to hold the "@return boolean value returned by function createNewUser - is boolean 1 with
//successfull and 0 when there is an error with executing the query .
$query = "INSERT INTO admin VALUES ( '$firstname','$lastname', '$employeeid','$emailid','$password')";
echo 'hello'+ $firstname;
//Block 5
mysqli_query ($mysqli, $query)
or die ("Error querying database");
//Block 7
mysqli_close($mysqli);
?>