Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/05/2008, 05:21
chevlo
 
Fecha de Ingreso: febrero-2008
Mensajes: 53
Antigüedad: 16 años, 2 meses
Puntos: 0
Pregunta codigo que reconozca parrafos

ola a todos necesito un codigo php que me reconozca los parrafos de un texto que esta en el servidor myadmin, el codigo q tengo ahora es el siguiente:

Código PHP:
<?php 
    
include('config.php');
    
$query 'SELECT * from noticias ORDER BY id DESC LIMIT 10';

    
$res=mysql_query($query);
    
$filas=mysql_num_rows($res);    
    
$n=1;
    echo 
'<h6>Noticias y Rumores ('.$filas.')</h6>';
    while(
$registro mysql_fetch_array($res)) {
    if (
$registro['trailer']!='') {$trailer='<img src="img/trailer.jpg" alt="trailer" width="16" height="16" /> ';} else {$trailer='';}
    echo 
'
    <div id="elemento'
.$n.'" class="elemento">
    <'
.strtolower($registro['titulo']).'"><img src="img.php?ruta=admin/imagenes_noticias/'.$registro['imagen'].'&max=170" alt="'.$registro['titulo'].'" class="portada"/>
        <h5>'
.$trailer.$registro['titulo'].'</h5>
        <p><strong>Noticia:</strong> '
.$registro['noticia'].'</p>
        <p><strong>Fecha:</strong> '
.$registro['fecha'].'</p>
    </div>'
;
    }
?>
la pag es esta para que veais como queda, www.videoclubmadison.com