Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $username='litesoft_vote';
- $password='noszscape1994';
- $database='litesoft_vote';
- $host='localhost';
- $days = 2;
- $time = time() - (60 * 60 * 24 * $DAYS);
- $sql = "DELETE FROM gifts WHERE time < $time";
- $result = mysql_query($sql);
- mysql_connect($host,$username,$password);
- @mysql_select_db($database) or die( "Unable To Connect To Database $database");
- $incentive = stripslashes(mysql_escape_string($_GET['postback']));
- $sql = "INSERT INTO `voted` (`id`) VALUES ('$incentive');";
- mysql_query($sql);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement