$pet =mysql_fetch_array(mysql_querll("SELECT * FROM `Grey_Pet` WHERE `id_user` = '$ank[id]'"));
if($pet['id']>0)
{
  echo "</div></di></div></div></div></div></div></div>";
 echo"<div class='content'>
<div class='block'>";
  echo'<h3>Питомец '.$ank[nick].' </h3>';
echo'<br><img src="/inc/Pet/'.$pet[id_pet].'.png">';
           echo'<br>Имя: <span class="title">'.$pet[name].'</span>';}