Guest User

Untitled

a guest
Jun 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. if (!empty($_POST['submit'])) {
  3. $expiredate = "".$_POST['expyear']."-".$_POST['expmonth']."-".$_POST['expday']."";
  4. $query = "INSERT INTO `news` (`nID`,`nHead`,`nCopy`,`nDate`,`nExpire`)
  5. VALUES('','".$_POST['Head']."','".$_POST['Copy']."',NOW(), $expiredate)";
  6.  
  7.  
  8. mysql_query($query);
  9.  
  10. header('Location: admin.php');
  11.  
  12. }
  13. ?>
Add Comment
Please, Sign In to add comment