Ver Mensaje Individual
  #7 (permalink)  
Antiguo 07/01/2014, 14:54
emmaghost
 
Fecha de Ingreso: enero-2013
Mensajes: 68
Antigüedad: 11 años, 3 meses
Puntos: 0
Respuesta: erro con manipulacion de datos en grid

bueno pues lo puse asi:
Código PHP:
Ver original
  1. $resul = mysql_query("select IF(estado=='ACTIVO','<img src=\"imagenes/verde.jpg\" width=\"50\" height=\"50\" />','<img src=\"imagenes/rojo.jpg\" width=\"50\" height=\"50\" />') dependencia, responsable, contacto, estado from dependencias order by dependencia");
  2.         while($row=mysql_fetch_array($resul)){
  3.         $ruta2 = $row["estado"];
  4.         }

y mando llamar a $ruta2

Código PHP:
Ver original
  1. $contenido = "<a href='redireccionando.php?DEPENDENCIA={1}'><img src='".$ruta2."'width='50' height='50'/></a>";

pero me sale el error de

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in...

xcierto muchas gracias por contestar :D