12/02/2009, 09:53
|
(Desactivado) | | Fecha de Ingreso: diciembre-2008
Mensajes: 421
Antigüedad: 16 años, 1 mes Puntos: 0 | |
Respuesta: Gestor de Noticias Hice esto pero ahora ya no me funciona
$sqlQueryNot = mysql_query("SELECT notTitulo, notTexto , notCategoriaID,foto,fecha FROM sn_noticias $clausula ", $db_link) or die(mysql_error);
echo "<h1>$titulo</h1>";
// mostramos las noticias,
// otra vez usanod un bucle while
while ($damefila=mysql_fetch_object($sqlQueryNot)){
?>
<table>
<tr>
<td> <?php echo strip_tags($damefila->notTitulo); ?></td>
</tr>
<tr>
<td colspan="2">
<img border="0" src="fotos/<?php echo strip_tags($damefila->foto)?>" width="150" height="150" align="right"></td>
<td>
<td> <?php
function parrafin($string) {
$article = explode("\n", $string);
$parrafo = $article[0];
return( $parrafo );
}
echo parrafin($damefila->notTexto);
?>
</td>
</tr> |