Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/12/2010, 21:11
MRB09
 
Fecha de Ingreso: febrero-2009
Ubicación: Argentina, Santa Fe, Rosario
Mensajes: 305
Antigüedad: 15 años, 2 meses
Puntos: 4
Actualizar listado de registros de PHP y MySQL

Hola quería hacer algo como lo que tiene Taringa! en el cuadrito de "Posts destacados", y si se puede en tiempo real mejor, tengo el siguiente código

Código PHP:
<ul>
            <?php do { ?>
            <li>
                <table><tr valign='middle'><td>
                <iframe src="http://www.facebook.com/plugins/like.php?href=http://<?php echo("$config_url"); ?>/<?php if ( $setting['url_type'] == "epoch") { echo $row_likes_newest['id']; } if ( $setting['url_type'] == "incremental") { echo $row_likes_newest['incr']; } ?>.htm&amp;
                layout=button_count&amp;show_faces=false&amp;width=115&amp;action=like&amp;colorscheme=light&amp;height=21"
                scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:115px; height:21px;" allowTransparency="true"></iframe></td>
                <td><span class="lista"><a href="/<?php if ( $setting['url_type'] == "epoch") { echo $row_likes_newest['id']; } if ( $setting['url_type'] == "incremental") { echo $row_likes_newest['incr']; } ?>.htm"><?php echo strip_tags($row_likes_newest['text']); ?></a></span></td></tr></table>
            </li>
            <?php } while ($row_likes_newest mysql_fetch_assoc($likes_newest)); ?>
        </ul>