Tema
:
Mostrar nombre recoger otro valor
Ver Mensaje Individual
#
2
(
permalink
)
22/08/2011, 07:53
Ronruby
Fecha de Ingreso: julio-2008
Ubicación: 18°30'N, 69°59'W
Mensajes: 4.879
Antigüedad: 16 años, 8 meses
Puntos: 416
Respuesta: Mostrar nombre recoger otro valor
Debes seleccionar ambos campos en tu consulta SQL y luego recoger los datos:
SELECT nom, idcategoria FROM categories
Luego en tu while:
Código PHP:
Ver original
while
(
list
(
$nom
,
$id
)
=
mysql_fetch_array
(
$result
)
)
{
echo
$id
.
' '
.
$nom
;
}
Ronruby
Ver Perfil
Buscar todos los Mensajes de Ronruby