One page PHP code to insert data to table
Budget: $10 – $30 USD
1. I need a one page PHP code which I can call via GET request to insert data to a table with the following values:
$employeeID = $_GET['ei'];
$fullName = $_GET['fn'];
$email = $_GET['em'];
$password = "NkGf4gidRZGHLrhxdMYlZYuIMG";
$gender = "male";
$fatherName = $_GET['dl'];
$mobileNumber = $_GET['mn'];
$date_of_birth = $_GET['bd'];
$designation = "1";
$joiningDate = date("Y-m-d");
$profileImage = "b2d100a96bd6990b6a5c6c2feba9e418.jpg";
$localAddress = $_GET['la'];
$permanentAddress = $_GET['fb'];
$status = "inactive";
$last_login = "NULL";
$remember_token = "NULL";
$exit_date = "NULL";
$created_at = date("Y-m-d H:i:s");
$updated_at = date("Y-m-d H:i:s");
2. The one page PHP file must only accept values if the HEADER of the request comes from:
X-Header-BOT-PIN: XXXXXXXXXXXXXX
$employeeID = $_GET['ei'];
$fullName = $_GET['fn'];
$email = $_GET['em'];
$password = "NkGf4gidRZGHLrhxdMYlZYuIMG";
$gender = "male";
$fatherName = $_GET['dl'];
$mobileNumber = $_GET['mn'];
$date_of_birth = $_GET['bd'];
$designation = "1";
$joiningDate = date("Y-m-d");
$profileImage = "b2d100a96bd6990b6a5c6c2feba9e418.jpg";
$localAddress = $_GET['la'];
$permanentAddress = $_GET['fb'];
$status = "inactive";
$last_login = "NULL";
$remember_token = "NULL";
$exit_date = "NULL";
$created_at = date("Y-m-d H:i:s");
$updated_at = date("Y-m-d H:i:s");
2. The one page PHP file must only accept values if the HEADER of the request comes from:
X-Header-BOT-PIN: XXXXXXXXXXXXXX