este es el codigo que tengo
Código PHP:
<?
$x=mysql_query("SELECT * FROM fblike ORDER BY hits DESC LIMIT 0,10");
$nr=0;
while ($y=mysql_fetch_assoc($x)) {
$id=$y['id'];
$like=$y['like'];
?>
<table width="100%" class="lafrase">
<tbody><tr><td width="79" style="border-right: 1px solid rgb(204, 204, 204); width: 80px;">
<script src="http://connect.facebook.net/es_LA/all.js#xfbml=1"></script>
<fb:like href="http://<?=$id?>.escribetufrase.com" layout="button_count" show_faces="true" width="50"></fb:like>*
</td>
<td width="568">
<div class="lista2"><a href='http://<?=$id?>.escribetufrase.com'><em><? echo substr($like, 0,140);?></em></a></div> </td></tr>
</tbody></table> <?
}
?>