Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <?php
  2. $username='litesoft_vote';
  3. $password='noszscape1994';
  4. $database='litesoft_vote';
  5. $host='localhost';
  6.  
  7.  
  8. $days = 2;
  9. $time = time() - (60 * 60 * 24 * $DAYS);
  10. $sql = "DELETE FROM gifts WHERE time < $time";
  11. $result = mysql_query($sql);
  12.  
  13.  
  14. mysql_connect($host,$username,$password);
  15. @mysql_select_db($database) or die( "Unable To Connect To Database $database");
  16. $incentive = stripslashes(mysql_escape_string($_GET['postback']));
  17. $sql = "INSERT INTO `voted` (`id`) VALUES ('$incentive');";
  18. mysql_query($sql);
  19.  
  20. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement