Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host = "mysql.hostinger.ae";
- $username = "user";
- $password = "pass";
- $db_name = "db";
- mysql_connect("$host", "$username", "$password")or die("cannot connect");
- mysql_select_db("$db_name")or die("cannot select DB");
- $myhwid = $_POST['HWID'];
- $mypassword = $_POST['Password'];
- $myhwid = stripslashes($myhwid);
- $mypassword = stripslashes($mypassword);
- $myhwid = mysql_real_escape_string($myhwid);
- $mypassword = mysql_real_escape_string($mypassword);
- $sql = "SELECT * FROM `AppJoiner` WHERE HWID='$myhwid' and Password='$mypassword' and Activated='yes'";
- $result=mysql_query($sql);
- $count=mysql_num_rows($result);
- if($count==1){
- echo '#SUCCESS#';
- }
- else {
- echo "#WRONG#";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement