<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://адрес_странички");
curl_setopt($ch, CURLOPT_POST, 1);
curl_exec ($ch);
curl_close ($ch);
SELECT goods.name, opt.val FROM 'goods' INNER JOIN 'options' ON opt_goods_id=goods_id
$a = [...];
$b = [];
foreach ($a as $item) {
if (!array_key_exists($item['goods_name'], $b)) {
$b[$item['goods_name']] = [];
}
if (!in_array($item['opt_val'], $b[$item['goods_name']])) {
$b[$item['goods_name']][] = $item['opt_val'];
}
}
<script src="/static/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script src="/static/js/jquery-1.11.0.min.js"></script>
<script src="/static/js/jquery-mobile-1.3.2-stripped.min.js"></script>
<script src="/static/js/util.js"></script>
<script src="/static/js/libs.js"></script>
<script src="/static/js/home.js"></script>