daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest May 7th, 2016 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $name = $_POST["name"];
  2. $designation=$_POST['designation'];
  3. $company=$_POST['company'];
  4. $email = $_POST["email"];
  5. $mobile=$_POST['mobile'];
  6. $workno=$_POST['workno'];
  7. $address=$_POST['address'];
  8. $association=$_POST['association'];
  9. $password = $_POST["password"];
  10. $username = $_POST["username"];
  11. $code=$_POST['code'];
  12.  
  13.  
  14.  
  15.  
  16.     $image = $_POST['image'];
  17.  
  18.  
  19.  
  20.     $path = "uploads/$code.png";
  21.  
  22.  
  23.     $actualpath = "http://sumitmehra.esy.es/$path";
  24.  
  25. $insertquery = mysqli_prepare($con , "INSERT INTO yoring ( name ,designation , company, email, mobile, workno, address, association, password,username,code,pic) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)");
  26.  
  27.     mysqli_stmt_bind_param($insertquery , "ssssiissssis", $name, $designation , $company, $email  ,$mobile, $workno, $address, $association, $password,$username,$code,$actualpath);
  28. mysqli_stmt_execute($insertquery);
  29.  
  30.     file_put_contents($path,base64_decode($image));
  31. mysqli_stmt_close($insertquery);
  32. mysqli_close($con);
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