mysql_query("SET NAMES 'utf8'");
<title>Online RPG Египет - Галерея</title>
<head>
<LINK href="style6.css" type=text/css rel=StyleSheet>
<style>
a:link {color:maroon ; text-decoration: none}
a:active {color:maroon; font-weight: bold ; text-decoration: none}
a:visited {color:maroon; text-decoration: none}
a:hover {color:ebe0bc; font-weight: bold ; text-decoration: underline}
</style>
</head>
<?
include "mysql_connect.php";
?>
<span style="position:absolute;top:102px;left:0px;">
<table border=0 cellpadding=0 cellspacing=0 width=100% height=250>
<tr>
<td align=left width=50%><img src="start_new/uz_left_down.gif"></td>
<td align=right width=50%><img src="start_new/uz_right_down.gif"></td>
<tr>
</table>
</span>
<body background="start_new/fon.gif" topmargin=0 leftmargin=0>
<table border=0 align=center width=100% height=100% cellpadding=0 cellspacing=0 background="start_new/dark_fon.gif" valign=top background="start_new/dark_fon.gif">
<tr height=76><td align=center valign=top>
<img src="start_new/logo.gif">
</td></tr>
<tr height=24>
<td align=center valign=top><b><font size=3 color=maroon>Галерея</font></b></td>
</tr>
<tr>
<td background="start_new/fon.gif">
 
</td>
</table>
<span style="position:absolute;top:112px;left:0px;width:100%;">
<center>
<table border=0 width=50% align=center style="border:0px solid maroon;">
<td background="start_new/dark_fon.gif" width=100 valign=top>
<a href=galery.php?razdel=amulet>Амулеты</a><br>
<a href=galery.php?razdel=shlem>Шлемы</a><br>
<a href=galery.php?razdel=knife>Оружия</a><br>
<a href=galery.php?razdel=hand>Нарукавники</a><br>
<a href=galery.php?razdel=gloves>Перчатки</a><br>
<a href=galery.php?razdel=sergi>Серьги</a><br>
<a href=galery.php?razdel=brona>Кольчуги</a><br>
<a href=galery.php?razdel=shit>Щити</a><br>
<a href=galery.php?razdel=pojas>Пояса</a><br>
<a href=galery.php?razdel=sapogi>Ботинки</a><br>
<a href=galery.php?razdel=ring>Кольца</a><br>
<a href=galery.php?razdel=resurs>Ресурсы</a><br>
</td>
<td background="start_new/dark_fon.gif" valign=top>
<?
if(!isset($_GET['razdel'])){$_GET['razdel']="amulet";}
if(isset($_GET['razdel']))
{
$raz=$_GET['razdel'];
$raz=mysql_real_escape_string($raz);
$raz=strip_tags($raz);
$tester=mysql_query("SELECT * FROM `shmotka` WHERE razdel='$raz' ORDER BY level_need");
if(mysql_num_rows($tester)>0)
{
?>
<table border=0 width=100% height=100% valign=top>
<td width=93% background="start_new/fon.gif">Название</td><td width=7% background="start_new/fon.gif">Уровень</td><tr>
<?
while($row=mysql_fetch_array($tester))
{
$sasa=$row['url'];
$sasa=str_replace(".gif","_big.gif",$sasa);
$sasa=str_replace("/img","img",$sasa);
if(file_exists($sasa))
{
?>
<td background="start_new/fon.gif" onMouseover="this.style.background='url(pi.jpg)'" onMouseout="this.style.background='url(start_new/fon.gif)'" onClick="window.open('/big_shmot.php?id=<? echo $row[id]; ?>','Просмотр',config='height=600,width=515,scrollbars')"><? echo $row['name']; ?></td><td background="start_new/fon.gif" align=center><? echo $row['level_need']; ?></td><tr>
<?
}
else
{
?>
<td background="start_new/fon.gif" onMouseover="this.style.background='url(pi.jpg)'" onMouseout="this.style.background='url(start_new/fon.gif)'"><? echo $row['name']."<font size=2 color=red>(Нет картинки)</font>"; ?></td><td background="start_new/fon.gif" align=center><? echo $row['level_need']; ?></td><tr>
<?
}
}
echo "</table>";
}
}
else
{
echo "<font color=ebe0bc> </font>";
}
?>
</td>
</table>
</center>
</span>
</body>