Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //echo "heyyy";
- $host="127.0.0.1";
- $user="root";
- $password="";
- $db="fantacalcio";
- $link = new mysqli($host,$user,$password,$db);
- if($link->connect_error){
- die("errore di connessione: ".$link->connect_error);
- }
- if($_POST){
- $uname=$_POST['username'];
- $password=$_POST['password'];
- $sql="select * from utente where user_='".$uname."' AND password_='".$password."' limit 1";
- $result=$link->query($sql);
- if($result->num_rows == 1)
- {
- echo "HHHHHEEEEEEEEIIIIIIIIII";
- exit();
- }
- else
- {
- echo "rrrccodddiooo";
- exit();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement