Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <?php
- @import("connect.php");
- $user =$_POST["user"];
- $pass =$_POST["password"];
- $risultato=mysql_query("SELECT * FROM utente");
- if(!$risultato) echo"Errore nella select";
- else
- {
- //$sqlcmd= "INSERT INTO utenti VALUES";
- //$sqlcmd.="('$user','$pass')";
- $query = "SELECT user FROM utente ";
- $result = mysql_query($query);
- $row = mysql_fetch_array($result);
- if($row["user"] == "$user")
- {
- echo ("Utente connesso");
- }
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment