SHARE
TWEET

Untitled

a guest May 22nd, 2017 60 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. mysql_connect("$host","$username","null")or die(mysql_error());
  11. mysql_select_db("$user_info")or die("mysql_error());
  12.  
  13. $myusername=$_GET['FirstName'];
  14. $mylastname=$_GET['LastName'];
  15.  
  16. $sql="Select * FROM $tbl_name WHERE username='$username' and password='$mylastname'";
  17. $result=mysql_query($sql)";
  18.  
  19. session_register("myusername");
  20. session_register("mypassword");
  21. }
  22. else {
  23. echo "$mysql_error()";
  24. }
  25. ?>
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