SHARE
TWEET

Untitled

a guest May 19th, 2017 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             $fname      = $_POST["fname"];
  2.             $lname      = $_POST["lname"];
  3.             $email      = $_POST["email"];
  4.             $password   = $_POST["password"];
  5.             $classes    = $_POST["classes"];
  6.             $targets    = $_POST["targets"];
  7.  
  8.             //PREPARED STATEMENTS
  9.  
  10.             $sql = "INSERT INTO SHS_Lehrer (fname, lname, email, password, classes, targets) VALUES ($fname, $lname, $email, $password, $classes, $targets)";
  11. if(!mysqli_query($con, $sql))
  12. {
  13. echo "error";
  14. }
RAW Paste Data
Top