Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: eba1291768
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 0.947 kB
<?php
$dbname = "mugunth1_udid";
$user = "mugunth1_udid";
$password = "wrong password";
header('Content-Type: text/plain');
$prod = filter_input(INPUT_POST,'productid',FILTER_SANITIZE_STRING); // varchar(255)
$udid = filter_input(INPUT_POST,'udid',FILTER_SANITIZE_STRING); // varchar(255)
// 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='".mysql_real_escape_string($udid)."' AND productid='".mysql_real_escape_string($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;
?>
Jump to Line
Something went wrong with that request. Please try again.