<?
$tip_1 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '1' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
$tip_2 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '2' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
$tip_3 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '3' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
$tip_4 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '4' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
$tip_5 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '5' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
$tip_6 = mysql_fetch_assoc(mysql_query("SELECT * FROM `inventar` WHERE `class` = '6' and `id_user` = '".$user['id']."' and `status` = 'on'"
);
?>
<div class="block center"><?
if($tip_1 == '0'){
?> <a href="/pers/shmot/helmets/"><img src="/style/market/golova.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/helmets/"><img src="/<?=$tip_1['img'];?>" width="30" height="30"/></a><?
}
if($tip_2 == '0'){
?> <a href="/pers/shmot/boards/"><img src="/style/market/shit.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/boards/"> <img src="/<?=$tip_2['img'];?>" width="30" height="30"/></a><?
}
if($tip_3 == '0'){
?> <a href="/pers/shmot/weapon/"><img src="/style/market/weapon.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/weapon/"><img src="/<?=$tip_3['img'];?>" width="30" height="30"/></a><?
}
if($tip_4 == '0'){
?> <a href="/pers/shmot/armor/"> <img src="/style/market/body.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/armor/"> <img src="/<?=$tip_4['img'];?>" width="30" height="30"/></a><?
}
if($tip_5 == '0'){
?> <a href="/pers/shmot/shoes/"> <img src="/style/market/nogi.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/shoes/"> <img src="/<?=$tip_5['img'];?>" width="30" height="30"/></a>
<?
}
if($tip_6 == '0'){
?> <a href="/pers/shmot/weapon/"><img src="/style/market/weapon.jpg" width="30" height="30"></a><?
}else{
?> <a href="/pers/shmot/weapon/"><img src="/<?=$tip_6['img'];?>" width="30" height="30"/></a><?
}
?>
Как сделать чтобы эти картинки накладывались по бокам по 4 справа и слева на <img src="/user.png"> кто может помочь? Код наложения/при-ложения нужен.