Código PHP:
<?php
include "include/Button.html";
include "include/conexion.php";
$DB = mysql_select_db("basket",$conexion);
$query = "select * from noticias";
$resultado = mysql_query($query, $conexion);
$total = mysql_num_rows($resultado);
if($total > 0){
//for($id = 0; $id < $total; $id++)
while($fila = mysql_fetch_assoc($resultado)){
$article = explode("\n", $fila['comentario']);
$parrafo = $article[0];
echo "<center>".ucfirst($fila['titulo'])."<br />".nl2br(ucfirst($parrafo))."</center>";
echo "<br /><a href=articulo.php?id=".$fila["id"].">Leer Mas</a>";
}
}
else{
echo "No Hay noticias Posteadas";
}
?>