Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $check = mysqli_query($link, "SELECT * FROM `UVotes` WHERE `username`='".$player."' AND `monitoring`='hotmc'");
- $milliseconds = time() * 1000 + 86400 * 1000;
- $player = strtolower($_POST['nick']);
- if(mysqli_num_rows($check) > 0) {
- mysqli_query($link,"UPDATE `UVotes` SET `time`='".$milliseconds."', `count`=`count` + 1, `status`=0 WHERE
- `username`='".$player."' AND `monitoring`='hotmc'");
- } else {
- mysqli_query($link, "INSERT INTO `UVotes` SET `username` = '".$player."', `monitoring`='hotmc', `time`='".$milliseconds."', `count`='1', `status`=0");
- }
- $check = mysqli_query($link, "SELECT * FROM `UVotesCommon` WHERE `username`='".$player."'");
- if(mysqli_num_rows($check) > 0) {
- mysqli_query($link,"UPDATE `UVotesCommon` SET `votes`=`votes` + 1 WHERE
- `username`='".$player."'");
- } else {
- mysqli_query($link, "INSERT INTO `UVotesCommon` SET `username` = '".$player."', `votes`='1'");
- }
- exit('ok');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement