Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.45 KB | None | 0 0
  1.  if(isset($_COOKIE['ID_my_site']))
  2.  {
  3.     $username = $_COOKIE['ID_my_site'];
  4.     $pass = $_COOKIE['Key_my_site'];
  5.         $check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
  6.     while($info = mysql_fetch_array( $check ))  
  7.         {
  8.  
  9.  
  10.         if ($pass != $info['password'])
  11.             {           echo "You are not logged in.";
  12.             }
  13.  
  14.  
  15.     else
  16.             {
  17.                 echo "Welcome $username,  you are logged in.";
  18.             }
  19.         }
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement