Ver Mensaje Individual
  #3 (permalink)  
Antiguo 30/06/2010, 03:01
AitorLopez
 
Fecha de Ingreso: mayo-2009
Mensajes: 742
Antigüedad: 15 años
Puntos: 6
Respuesta: Guardar registros en un array

Perdon.

$rs = mysql_query("SELECT frase, autor FROM t_frases");

while ($rs1 = mysql_fetch_row($rs))
{
if (!prueba)
{
$i = 0;
$prueba[$i] = $rs1[0];
}
else
{
$i = $i++;
$prueba[$i] = $rs1[0];
}
echo $prueba[$i];
}

No funciona