Ver Mensaje Individual
  #9 (permalink)  
Antiguo 29/01/2009, 13:22
Avatar de bioxido
bioxido
 
Fecha de Ingreso: diciembre-2008
Ubicación: $_SERVER['PHP_SELF']
Mensajes: 601
Antigüedad: 15 años, 5 meses
Puntos: 21
Respuesta: Limitar el numero de noticias que se lee de la db

esta arriva eso-.-.

Bueno, aca lo pongo de nuevo.

Código PHP:
<head>

<?
$dbhost 
"XXXXXXXX";
$dbuname "XXXXXXXX";
$dbpass "XXXXXXXXXX";
$dbname "XXXXXXXXXX";

$link mysql_connect$dbhost$dbuname$dbpass) or die ( "Error Conectando a La Bases De Datos.");
mysql_select_db$dbname,$link ) or die ("Error Seleccionando La Base De Datos.");

$result mysql_query("SELECT title,time,hometext FROM nuke_stories ORDER BY nuke_stories.sid DESC LIMIT 0 , 5"$link);

while (
$row mysql_fetch_array($result))

{


?>
</head>

<body>
<table  align="center" width="72%" height="41">
<title>Prueba</title><td width="100%" background="http://i286.photobucket.com/albums/ll96/bioxido8/1421351-2.jpg" height="27">
  <div align="center"><? echo '<font color="#ffffff" face="Arial" size="4">'.$row[title]. '</font>';?> sdad  </div></td>
</table>
</table>
<td width="100%" bacjgriybd="#c9c9c9">
      <? echo '<div align="center"><font color="#000000" face="Arial" size="2">'.$row[hometext]. '</font></div>'
    }
     
?>
  </div></td>
</table>
</body>

Última edición por bioxido; 30/01/2009 a las 00:00