Advertisement
Guest User

vipok

a guest
May 14th, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. $tptl = $_POST['ProductForm']['tptl']
  2. $tptl2 = $_POST['ProductForm']['tptl2']
  3.  
  4. try {
  5. $stmt = $pdo->prepare("UPDATE a_temp_session SET
  6. tptl = :1,
  7. tptl2 = :2
  8. WHERE session_id = :session_id");
  9.  
  10. $stmt->bindValue(":1", $tptl);
  11. $stmt->bindValue(":2", $tptl2);
  12. $stmt->bindValue(":session_id", $ses_id);
  13. $stmt->execute();
  14.  
  15. echo '{"status":1,"data":null,"error":null}';
  16. }
  17. catch (PDOException $e) {
  18. print $e->getMessage ();
  19. echo '{"status":0,"data":null,"error":null}';
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement