SHARE
TWEET

Untitled

a guest May 22nd, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. include("login.php");
  3.  
  4. $host="localhost";
  5. $username ="root";
  6. $password="";
  7. $db_name="users";
  8. $tbl_name="users_info";
  9.  
  10.  
  11. mysql_connect("$host","$username","null")or die(mysql_error());
  12. mysql_select_db("$user_info")or die("mysql_error());
  13.  
  14. $myusername=$_GET['FirstName'];
  15. $mylastname=$_GET['LastName'];
  16.  
  17. $sql="Select * FROM $tbl_name WHERE username='$username' and password='$mylastname'";
  18. $result=mysql_query($sql)";
  19.  
  20. $session_register = mysql_real_escape_string("myusername")();
  21. session_register("myusername");
  22. $session_register = mysql_real_escape_string("mypassword")();
  23. session_register("mypassword");
  24. }
  25. else {
  26. echo "$mysql_error()";
  27. }
  28. ?>
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