![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/11/2011, 12:48
|
(Desactivado) | | Fecha de Ingreso: septiembre-2011
Mensajes: 283
Antigüedad: 13 años, 4 meses Puntos: 10 | |
Respuesta: como hacer un if mira con eso imprime esto:
select Estado from amigos where id_amigo='4' and id_logueado='1'
dentro del while
paso por el if 0
Cantidad de vueltas I 1
Cantidad de registros del select 1
y el en siguiente registro esto:
select Estado from amigos where id_amigo='3' and id_logueado='1'
Cantidad de vueltas I 0
Cantidad de registros del select 0
pero yo sigo sin saber por que no me funciona el if |