Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc, fprice, inkoop, image, author, html) VALUES('1', 'bronze 5 - bronze 4', '1' at line 1
  2.  
  3. <?php
  4.  
  5. if(isset($_POST['submit'])) {
  6. $shopid1 = $_POST['productid'];
  7. $prodname1 = $_POST['productname'];
  8. $desc1 = $_POST['desc'];
  9. $fprice1 = $_POST['fprice'];
  10. $price1 = $_POST['price'];
  11. $inkoop1 = $_POST['inkoop'];
  12. $image1 = $_POST['image'];
  13. $qty1 = $_POST['qty'];
  14. $html1 = $_POST['html'];
  15. $author1 = $_SESSION['name'];
  16.  
  17.  
  18.  
  19. mysql_query("INSERT INTO products(shopid, name, qty, price, desc, fprice, inkoop, image, author, html) VALUES('$shopid1', '$prodname1', '$qty1', '$price1', '$desc1', '$fprice1', '$inkoop1', '$image1', '$author1', '$html1')", $conn)
  20. or die(mysql_error());
  21. Header("Location: products.php");
  22.  
  23. } else {
  24.  
  25. }
  26.  
  27.  
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement