Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1.  
  2.         $queryRis = mysql_query("SELECT * FROM login WHERE user='$username' and pass='$password'") or exit("Problemi in query");
  3.         $riga = mysql_fetch_array($queryRis);
  4.  
  5.         if (!$riga) {
  6.             header("location: login.php");
  7.             $_SESSION['connesso']=false;
  8.         };
  9.         if ($riga) {
  10.             echo "Accesso effettuato";
  11.             $_SESSION['connesso']=true;?>
  12.             <?php
  13.             header('Location: index.php');
  14.             echo "cafafaofn!";
  15.             exit;
  16.         };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement