Advertisement
mohamed_khater

fuck

Oct 23rd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <?php
  2. $dbc = mysql_connect("localhost","root","");
  3. if (! $dbc){
  4.  
  5. echo "a7a";
  6. exit(1);
  7. }
  8. $db_select = mysql_select_db("people",$dbc);
  9. if(!$db_select){
  10. echo "a7a";
  11. exit(1);}
  12. $username=$_POST['user'];
  13. $address=$_POST['address'];
  14. $email=$_POST['e-mail'];
  15. $password=$_POST['password'];
  16.  
  17.  
  18. $phone=$_POST['phonenumber'];
  19. $city=$_POST['city'];
  20. //$check_email="select * from people where email='$email'";
  21. /*$local=mysql_query($check_email);
  22. if(mysql_num_rows(resource $local)>0){
  23. echo 'the email'.$email.'already exitsts';
  24. exit();
  25. }
  26. */
  27. $query="INSERT INTO users (user,address,phone,password,city,email) VALUES ($username,$address,$phone,$password,$city,$email)";
  28. /*if(mysql_query($query)){
  29. echo 'registration successfull!';
  30. }
  31. */
  32. echo 'welcome' .$address;
  33.  
  34.  
  35.  
  36.  
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement