Ver Mensaje Individual
  #3 (permalink)  
Antiguo 01/03/2012, 18:46
Avatar de VbOkonly
VbOkonly
 
Fecha de Ingreso: julio-2009
Ubicación: San Justo, Buenos Aires, Argentina
Mensajes: 490
Antigüedad: 14 años, 10 meses
Puntos: 5
Respuesta: ¿Como muestro esta consulta?

ahi lo arreglé, habia algunos problemas mas, mira:

Código PHP:
Ver original
  1. <?php while($todo_bien = mysql_fetch_array($q_estadisticas_both)){?>
  2. <table width="500px" border="1">
  3.   <tr>
  4.     <td width="50px"><?php echo '<img src=https://graph.facebook.com/'.$todo_bien['de_interaccion'].'/picture>';?></td>
  5.     <td width="300px"><?php echo $todo_bien['nombrecompleto_usuario'];?></td>
  6.     <td><?php if($todo_bien['valor_interaccion'] == 1) echo "Dijo Sí";
  7.               if($todo_bien['valor_interaccion'] == 2) echo "Dijo Capaz!";?></td>
  8.   </tr>
  9. </table>
  10. <?php }?>

Sin embargo no me muestra esta parte: <?php echo $todo_bien['nombrecompleto_usuario'];?

La consulta es:

Código PHP:
Ver original
  1. $q_estadisticas_both = mysql_query('SELECT I.*
  2. FROM interaccion I
  3. WHERE (I.a_interaccion = "'.$_SESSION['fid_username'].'"
  4.       AND I.de_interaccion IN(SELECT
  5.                                a_interaccion
  6.                              FROM interaccion H
  7.                              WHERE H.de_interaccion = "'.$_SESSION['fid_username'].'"))
  8.    AND valor_interaccion <> 3
  9. ',$db);
__________________
Mi primera web: http://www.mascoteame.com