Ver Mensaje Individual
  #21 (permalink)  
Antiguo 03/05/2009, 07:29
Avatar de rompeguesos
rompeguesos
 
Fecha de Ingreso: marzo-2009
Mensajes: 692
Antigüedad: 15 años, 1 mes
Puntos: 8
Respuesta: Consulta a la base de datos continua en diferentes divs?

Yo para probarlo he hecho esto:

Código PHP:
<?php 

include("usuarios/reg/config.php");  

// mostramos las noticias,   
$consulta =  mysql_query("SELECT not_ID, titulo, texto, email, f_alta, imagen FROM noticias ORDER BY not_ID DESC LIMIT 3"$db_link)  
or die(
mysql_error());  
while(list(
$not_ID$titulo$texto$email$f_alta$imagen)=mysql_fetch_row($consulta)) {  
$noticia[0] = $not_ID;   
$noticia[1] = $titulo;  
$noticia[2] = $texto;  
$noticia[3] = $email;  
$noticia[4] = $f_alta;  
$noticia[5] = $imagen
$noticia[6] = $not_ID;   
$noticia[7] = $titulo;  
$noticia[8] = $texto;  
$noticia[9] = $email;  
$noticia[10] = $f_alta;  
$noticia[11] = $imagen
$noticia[12] = $not_ID;   
$noticia[13] = $titulo;  
$noticia[14] = $texto;  
$noticia[15] = $email;  
$noticia[16] = $f_alta;  
$noticia[17] = $imagen


echo 
"$noticia[1]";
echo 
"$noticia[7]";
?>
Le he puesto los echos para ver que mostraba y muestra lo mismo.