Выберите игру и тип товара:
'Валюта', 'Аккаунты', 'Услуги', 'Предметы', 'Пополнение', 'Подарки'); $rs=mysql_query ("SELECT *, g.code AS gCode, g.name AS gName, g.id AS gID, v.id AS vID, p.ver AS pVer FROM prod AS p, game AS g, user AS u, ver AS v WHERE u.id=$id AND u.id=p.user AND (p.ver=v.id OR p.ver=0) AND p.gm=g.id AND p.off=0 GROUP BY p.gm, p.ver, p.type"); while($ct=mysql_fetch_assoc($rs)){ if (!$ct['pVer']) {$ct['vID']=0; $st="";} else $st=$ct['name']; $rs2=mysql_query ("SELECT * FROM ver WHERE id={$ct['vID']}");//$vr=mysql_fetch_assoc($rs2); if (mysql_num_rows($rs2)) {$vr=mysql_fetch_assoc($rs2);$ver=$vr['code'];$verName=$vr['name']." / ";} else { $ver="standart"; ;$verName=$ct['gName']." / ";} ?>

Нет такого пользователя!
";} require('inc/foot.php')?>