Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $sql = "INSERT INTO Data (Name, Description,Photo,Buy,Sell) VALUES ('"$_POST['name']"','"$_POST['description']"','"$_POST['photo']"','"$_POST['buy']"','"$_POST['sell']"'"));
  2.  
  3. $sql = "INSERT INTO Data (Name, Description,Photo,Buy,Sell) VALUES (?,?,?,?,?)";
  4. $stmt = $pdo->prepare($sql);
  5. $stmt->execute([$_POST['name'], $_POST['description'], $_POST['photo'], $_POST['buy'],$_POST['sell']]);
  6.  
  7. $sql = "INSERT INTO Data (Name, Description,Photo,Buy,Sell) VALUES ('$_POST[name]','$_POST[description]','$_POST[photo]','$_POST[buy]','$_POST[sell])";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement