<?php
$q=mysql_query("SELECT * FROM `ruler` ORDER BY `id` DESC LIMIT 3");
echo "<table style='width:100%' cellspacing='0' cellpadding='0'><tbody>";
echo "<tr>";
while ($post = mysql_fetch_array($q)){
$ank=get_user($post['id_user']);
echo "<td class='webpanel'>";
echo "".avatar2($ank['id'])."";
echo "</td>";
}
echo "</tr></tbody></table>";
?>