Test API

[insert_php] $token = ‘aH65_iLWedIJxbwxbN9GMkzEkS6c6hzr’;
$url = ‘https://api.accesstrade.vn/v1/top_products’;
$opts = array (
‘http’ => array (
‘method’ => ‘GET’,
‘header’ => “Content-Type: application/json\r\n” . “Authorization: Token ” . $token . “\r\n”
)
);

$context = stream_context_create ( $opts );
$result = json_decode ( file_get_contents ( $url, false, $context ), true );

$total = $result [‘total’];
if ($total > 0) {
$data = $result [‘data’];
echo ‘ Tổng số có ‘ . $total . ‘ khuyến mãi ‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
$count = 0;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
if ($total > $count) {
$value = $data [$count];

$name = $value [‘name’];
$short_desc = $value [‘short_desc’];
$aff_link = $value [‘aff_link’];

$price = $value [‘price’];
$discount = $value [‘discount’];
$brand = $value [‘brand’];
$category_name = $value [‘category_name’];
$desc = $value [‘desc’];
$image = $value [‘image’];
$link = $value [‘link’];
$count ++;

echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘‘ . $count . ‘. ‘ . $name . ‘‘;
echo ‘
‘;
echo ‘‘ . $short_desc . ‘‘;
echo ‘

Thương hiệu : ‘ . $brand . ‘

‘;
echo ‘

Nhóm hàng : ‘ . $category_name . ‘

‘;
echo ‘

Giá gốc : ‘ . $price . ‘ đ

‘;
echo ‘

Giảm giá : ‘ . $discount . ‘ đ

‘;
echo ‘

' . $name . '

‘;
echo ‘

‘ . $desc . ‘

‘;
echo ‘

Xem Thông Tin Chi Tiết

‘;
echo ‘

‘;
}
echo ‘

‘;
} else {
echo ‘Không có khuyên mãi’;
}
[/insert_php]