Ver Mensaje Individual
  #7 (permalink)  
Antiguo 15/08/2010, 21:52
Avatar de carlos_belisario
carlos_belisario
Colaborador
 
Fecha de Ingreso: abril-2010
Ubicación: Venezuela Maracay Aragua
Mensajes: 3.156
Antigüedad: 14 años, 1 mes
Puntos: 461
Respuesta: Consulta PHP MysQL

no te entiendo lo q kieres hacer pero al traer el mysql_fetch_array ya tienes lo valores en un arreglo pero si lo q kieres es un array asociativo es decir q en el indic 0 esten los valores resultantes del id tal usa mysql_fetch_assoc que te crea un array asociativo ej:
Código PHP:
$datos=array();
while(
$row=mysql_fetch_assoc($query)){
     
$datos[]=$row;
}
echo 
$datos[0]['nombre']." ".$datos[0]['apellido']; te muestra el nombre y el apellido del primer registro aunq como te dig no entendi bien q es lo q kieres suerte 
__________________
aprende d tus errores e incrementa tu conocimientos
it's not a bug, it's an undocumented feature By @David
php the right way