Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>
- <?php
- $con = mysql_connect("127.0.0.1","root","root");
- if (!$con)
- {
- die('Could not connect: ' . mysql_error());
- }
- $ip=$_SERVER["REMOTE_ADDR"];
- $gamertag=$_POST["gamertag"];
- $alias=$_POST["alias"];
- echo "$gamertag";
- echo "<br>";
- echo "$alias";
- echo "<br>";
- echo "$ip";
- echo "<br>";
- // Checking the Username
- $buscarusuario = "SELECT gamertag FROM lobby WHERE gamertag LIKE '$gamertag'";
- $resultadouser = mysql_query($buscarusuario);
- if (mysql_num_rows($resultadouser) > 0){
- echo "Username you've entered already taken.<br> ";
- echo("Registration not completed.<br>");
- }
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement