Файл: shop_sn.php
Строк: 48
<?php
include_once("files/zag.php");
include_once("files/ini.php");
$pr_q = mysql_query("SELECT * from `weapon`");
$pts = mysql_num_rows($pr_q);
echo '<img src="img/weapon.png" alt="pic"/> <a href="shop.php?mod=w">Оружие </a>['.$pts.']<br/>';
$pr_q = mysql_query("SELECT * from `armor` where `bodypart`!='neck' and `bodypart`!='earning' and `bodypart`!='ring'");
$pts = mysql_num_rows($pr_q);
echo '<img src="img/up.png" alt="pic"/> <a href="shop.php?mod=b">Доспехи </a>['.$pts.']<br/>';
$pr_q = mysql_query("SELECT * from `armor` where `bodypart`='neck'");
$pts = mysql_num_rows($pr_q);
echo '<img src="img/necklace.png" alt="pic"/> <a href="shop.php?mod=armor&vid=neck">Ожерелья </a>['.$pts.']<br/>';
$pr_q = mysql_query("SELECT * from `armor` where `bodypart`='earning'");
$pts = mysql_num_rows($pr_q);
echo '<img src="img/earring.png" alt="pic"/> <a href="shop.php?mod=armor&vid=earning">Серьги </a>['.$pts.']<br/>';
$pr_q = mysql_query("SELECT * from `armor` where `bodypart`='ring'");
$pts = mysql_num_rows($pr_q);
echo '<img src="img/ring.png" alt="pic"/> <a href="shop.php?mod=armor&vid=ring">Кольца </a>['.$pts.']<br/>';
echo '<img src="img/potion_2.png" alt="pic"/> <a href="shadow.php?">Теневое снаряжение</a><br/><br/>';
echo '<img src="img/potion.png" alt="pic"/> <a href="vesh.php?&go=pokypka&vid=elic">Расходные материалы</a><br/>';
echo '<img src="img/soulshots.png" alt="pic"/> <a href="vesh.php?&go=pokypka&vid=soski">Soulshot|Spiritshots</a><br/>';
echo '<img src="img/news.png" alt="pic"/> <a href="vesh.php?&go=pokypka&vid=scrol">Свитки</a><br/>';
echo '<img src="img/fishing.png" alt="pic"/> <a href="vesh.php?&go=riba&vid=elic">Рыбалка</a><br/><br/>';
echo '<img src="img/resourse.png" alt="pic"/> <a href="listsell.php">Продать в магазин</a><br/>';
include_once"files/down.php";
?>