Advertisement
Devja

Untitled

Jan 11th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     include 'connect.php';
  3.    
  4.     $user =$_POST["user"];
  5.     $pass =$_POST["password"];
  6.    
  7.  
  8.     $query="SELECT user FROM  utente WHERE user='$user' AND password='$pass'"; 
  9.     $risultato = mysql_query($query);
  10.     $row= mysql_num_rows($risultato);
  11.    
  12.     if($row==1)
  13.     {
  14.         echo"Log in effettuato";
  15.        
  16.     }
  17.     else
  18.     {
  19.         echo"utente non connesso ";
  20.     }
  21.  
  22.    
  23.            
  24.     //mysql_close(utenti); 
  25. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement