Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $xml_pf_file = "product_datafeed.xml";
  2.  
  3. $Price = $feedClient[''.$def_price.''];
  4. $DeepLink = $feedClient[''.$def_url.''];
  5. $EanNr = $feedClient[''.$def_ean.''];
  6.  
  7.  
  8. if ((strlen($EanNr) > 8) && is_numeric($EanNr))
  9. {
  10.  
  11. $ProductId = CheckEanNrInProductDatabase($EanNr);
  12.  
  13. if ($ProductId > 0)
  14. {
  15.  
  16. $sql_add = "INSERT INTO ProductsFeedPrices
  17. (ProductId, CustomerId, Price, Deeplink) VALUES
  18. (".$ProductId.", ".$CustomerId.", ".$Price.", '".$DeepLink."') ";
  19.  
  20. if (mysql_query($sql_add)) {
  21. $teller_add++;
  22. }
  23.  
  24. $count_add++;
  25.  
  26. }
  27.  
  28.  
  29. }
  30.  
  31. $count_i++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement