Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.
$statement = $conn->prepare("INSERT INTO products (title, cost, price, rrp, sku, weight, main_image, manufacturer_id, ean, enabled, mpn, product_url, forwho) VALUES (:title, :cost, :price, :rrp, :sku, :weight, :main_image, :manufacturer_id, :ean, 2, :mpn, :product_url, :forwho) ON DUPLICATE KEY UPDATE cost=values(cost), price=values(price), rrp=values(rrp), weight=values(weight), main_image=values(main_image), ean=values(ean)");
$statement->execute(array( ':title' => $product->NAME, ':cost' =>$cost, ':price' =>$price, ':rrp' => $product->RRP, ':sku' => $product['ITEM'], ':weight' => $product->WEIGHT, ':main_image' => "/".substr($product->IMAGE,0,1)."/".substr($product->IMAGE,1,1)."/".$product->IMAGE, ':manufacturer_id' => $product->MANUFACTURER_ID, ':ean' => $product->EAN, ':mpn' => $product->MODEL, ':product_url' => $product_url, ':forwho' => $product->FORWHO ));
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.