Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. include("./config.php");
  4. $Aantal = $_POST["Aantal"];
  5. $id = 1;
  6. $model = LG-49SJ810V;
  7.  
  8.  
  9. $sql = "INSERT INTO Bestellingen (Aantal, id)
  10. VALUES ('$Aantal','$id')";
  11.  
  12.  
  13. if (empty($_POST["aantal"])) {
  14. exit("Er moet een aantal worden ingevoerd");
  15. }
  16. if($conn->query($sql)) {
  17. header("location: ./Eindscherm.html");
  18. } else {
  19. echo "Error: " . $sql . "<br>" . $conn->error;
  20. }
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement