Ver Mensaje Individual
  #19 (permalink)  
Antiguo 08/11/2011, 12:48
edyuin
(Desactivado)
 
Fecha de Ingreso: septiembre-2011
Mensajes: 283
Antigüedad: 12 años, 7 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