Advertisement
Hadi1989

Untitled

Sep 13th, 2021
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.     require_once'conn.php';
  3.     if(ISSET($_POST['submit'])){
  4.         $coupon=$_POST['coupon'];
  5.        
  6.         mysqli_query($conn, "INSERT INTO `coupon` VALUES('', '$coupon', '')") or die(mysqli_error());
  7.        
  8.         header("location: index.php");
  9.     }
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement