SHARE
TWEET

Untitled

a guest Jun 8th, 2017 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3.  $mysqli = new mysqli('mysql14.000webhost.com', 'a6562765_user', 'hollam1231', 'a6562765_user');
  4.  
  5. $employer_id = $_POST['employer_id'];
  6. $employer = $_POST['employer'];
  7. $company = $_POST['company'];
  8. $company_id = $_POST['company_id'];
  9. $telephone = $_POST['telephone'];
  10. $email = $_POST['email'];
  11. $username = $_POST['username'];
  12. $password = md5($_POST['password']);
  13. $active = $_POST['active'];
  14. $signuphash = md5(date(d/m/Y H/u));
  15.  
  16.  
  17. $stmt = $mysqli->prepare("INSERT INTO employers VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)");
  18. $stmt->bind_param('issiissss', $employer_id, $employer, $company, $company_id, $telephone, $email, $username, $password, $active, $signuphash);
  19.  
  20. /* execute prepared statement */
  21. $stmt->execute();
  22.  
  23. /* close statement and connection */
  24. $stmt->close();
  25.  
  26. /* close connection */
  27. $mysqli->close();
  28.  
  29. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top