Guest User

Untitled

a guest
Jan 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Dim result_post = SendRequest(New Uri(strURL), data, "application/json", "POST")
  2.  
  3. $data = file_get_contents('php://input');
  4. //$data = '[{"products_model":"2481-5-50","products_name":"2481-5-50 Desk, Maple with an extended d","products_description":"Desk, Maple with an extended descriptionrAnd this is line 2","products_quantity":112,"products_date_available":"2009-07-08T00:00:00","products_url":"","fc_products_id":0,"updated":"2012-04-15T00:00:00","products_price":1109.95,"ImageFile":"","products_tax_class_id":1,"products_weight":0.00}]';
  5.  
  6. $json = json_decode($data, true);
  7. Foreach ($json as $i => $row) {
  8. //sql insert code goes here
  9. }
Add Comment
Please, Sign In to add comment