SHARE
TWEET

Untitled

a guest Dec 29th, 2016 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $servername = "localhost";
  2. $username = "voidreal_admins";
  3. $password = "8{B=OHfmQaT8";
  4. $dbname = "voidreal_admins";
  5.  
  6. // Create connection
  7. $conn = new mysqli($servername, $username, $password, $dbname);
  8. // Check connection
  9. if ($conn->connect_error) {
  10.     die("Connection failed: " . $conn->connect_error);
  11. }
  12.  
  13. $sql = "UPDATE sm_admins SET flags='' WHERE ENDDATE < CURDATE() ";
  14.  
  15.  
  16. if ($conn->query($sql) === TRUE) {
  17.     echo "Record deleted successfully";
  18. } else {
  19.     echo "Error deleting record: " . $conn->error;
  20. }
  21. $conn->close();
  22. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top