Код |
---|
$query = $DB->Query("SELECT bsb.PRODUCT_ID, bsb.NAME, bsb.QUANTITY FR OM b_sale_basket bsb, b_sale_order bso WHERE bso.ID=bsb.ORDER_ID AND bso.CANCELED='N' AND bso.ID=".$id); $result = $query->Fetch(); mail(мой_email, 'Test', $result["PRODUCT_ID"]); |