Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $dbname = "mugunth1_udid";
- $user = "mugunth1_udid";
- $password = "wrong password";
- header('Content-Type: text/plain');
- $prod = $_POST['productid'];
- $udid = $_POST['udid'];
- // Connect to database server
- $hd = mysql_connect("localhost", $user, $password)
- or die ("Unable to connect");
- // Select database
- mysql_select_db ($dbname, $hd)
- or die ("Unable to select database");
- // Execute sample query (insert it into mksync all data in customer table)
- $res = mysql_query("SELECT * FROM mugunth1_udid.requests where udid='$udid' AND productid='$prod' AND status = 1",$hd) or die ("Unable to select :-(");
- $num = mysql_num_rows($res);
- if($num == 0)
- $returnString = "NO";
- else
- $returnString = "YES";
- mysql_close($hd);
- echo $returnString;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement