This question has already been answered:
This code prints a list of all cells from the xfields field. Ie from the array key label
Vision Vision Vision Sony Spinnin Spinnin ... And you need something like this.
Vision - 3 треков Sony - 1 треков Spinnin - 2 треков ... In principle, it will do without a quantity, the main thing is that in one copy, but with a figure it would be better.
<?php if (!defined('DATALIFEENGINE')) { die("Hacking attempt!"); } global $config; $limit = $limit ? intval($limit) : "20"; if (!$r_mlabel) { $sql = $db->query("SELECT * FROM " . PREFIX . "_post ORDER BY id DESC LIMIT 0,{$limit}"); while ($row = $db->get_row($sql)) { $xfieldsdata = xfieldsdataload($row['xfields']); $r_mlabel.= "<a href=\"/xfsearch/" . $xfieldsdata['label'] . "/\">{$xfieldsdata['label']}</a>"; } } echo $r_mlabel; ?> 