<?php
$q=mysql_query("SELECT * FROM `ruler` ORDER BY `id` DESC LIMIT 4");
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 photo($ank['id'],2,48,48);
echo "</td>";
}
echo "</tr></tbody></table>";
?>