Advertisement
norberto1112

a

May 27th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. if (mysqli_num_rows($data)!=NULL)
  2.         {
  3.           $row = mysqli_fetch_array($data);
  4.           setcookie ('username', $row['tys_username'],time() + 3600);
  5.           $home_url = 'http://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/home.php';
  6.           header('Location: ' . $home_url);
  7.            }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement