echo ' <div id="titulo_atraccion" style="font-size:11px; padding-top:5px"><b>' . mysql_result($result, $i, 1) . '</b></div>'; // echo ' <div id="foto_atraccion"><img width="70px" height="70px" src="'.mysql_result($result,$i,9).'"/></div>'; // echo ' <div id="descripcion_atraccion">'.substr(mysql_result($result,$i,2),0,90).'..."</div> '; echo '</div></a></td>'; } } if ($numAtr == 0) { echo "<p> Actualmente tus amigos no han comprado ninguna atracción</p>"; } echo "<br><br><br><br><br><br> "; echo "<h2> Sabemos que esto te gustará: </h2>"; echo "<hr>"; $numAtr = 0; $result = $preferencies->getPreferenciesUsuari($_SESSION[idUsuario]); for ($x = 0; $x < mysql_num_rows($result); $x++) { $resultAtr = $atraccions->getAtraccionByTipo(mysql_result($result, $x, 2)); for ($i = 0; $i < mysql_num_rows($resultAtr); $i++) { $numAtr++; echo '<a class="iframes fancybox.iframe" href="atraccions.php?id=' . mysql_result($resultAtr, $i, 0) . '">'; echo '<div id="atraccion" style="height:5px;">'; echo ' <div id="titulo_atraccion" style="font-size:11px; padding-top:5px"><b>' . mysql_result($resultAtr, $i, 1) . '</b></div>'; // echo ' <div id="foto_atraccion"><img width="70px" height="70px" src="'.mysql_result($result,$i,9).'"/></div>'; // echo ' <div id="descripcion_atraccion">'.substr(mysql_result($result,$i,2),0,90).'..."</div> '; echo '</div></a></td>'; } } if ($numAtr == 0) { echo "<p> Actualmente no te podemos recomendar ninguna atracción </p>"; } ?> </body>