PHP
- 10 ответов
- 0 вопросов
8
Вклад в тег
$data = json_decode(file_get_contents('domain2.ru/getinfo.php?id=' . $_REQUEST['id']));
$data = [
'title' => $title,
'img' => $img,
'text' => $text
];
echo json_encode($data);
if($filter) {
$where = '';
foreach($filter as $key => $value)
{
$res = explode("=", $value);
if($where != ''){
$where .= ',';
}
$where .= '"'.$res[0].':=":"'.$res[1].'"';
}
$where = '{' . $where . '}';
echo $where
}
echo $ar_dtype["NAME"]." - ".CurrencyFormat($ar_dtype["PRICE"], $ar_dtype["CURRENCY"], $ar_dtype["NAME"])."<br>";
$price = $ar_dtype["PRICE"];
if($price > 0){
$txt_price = CurrencyFormat($ar_dtype["PRICE"], $ar_dtype["CURRENCY"], $ar_dtype["NAME"]);
}
else{
$txt_price = 'Бесплатно';
}
echo $ar_dtype["NAME"] . " - " . $txt_price . '<br>';