Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo("CIAO A TUTTI");
- $hostname="locolhost";
- $username="root";
- $password="";
- $err="errore";
- $conn=mysql_connect($hostname;$surname,$password);
- if(!$conn){
- echo($err)."connssione sql";
- exit();
- }
- $ip=$_SERVER["REMOTE_ADDR"];
- $ban_control="SELECT ip from ban where ip=$ip";
- $resulset=mysqli_query($conn,$ban_control);
- echo "$ip<br>";
- if(mysqli_num_rows($resulset)!=0)
- {
- echo "You are already banned<br>";
- }else{
- $username=$_POST["user"];
- $èasseord=$_POST["pass"];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement