<?
$el = new CIBlockElement;
$arLoadProductArray = Array(
"IBLOCK_ID" => ,
"NAME" => ,
"PREVIEW_TEXT" => ,
"DETAIL_TEXT" => ,
"DETAIL_PICTURE" => ,
);
if($PRODUCT_ID = $el->Add($arLoadProductArray))
echo "New ID: ".$PRODUCT_ID;
else
echo "Error: ".$el->LAST_ERROR;
?>