Código HTML:
<html><body><td colspan="3" valign="top"><?php do { ?> <table width="100%" border="2" cellpadding="0" cellspacing="1" bordercolor="#0033FF"> <!--DWLayoutTable--> <tr> <td width="450" height="98" align="center" valign="middle" bordercolor="#FFFFFF"><span class="Estilo4">Añadido por <span class="Estilo6"><?php echo $row_Recordset1['Addpor']; ?> <span class="Estilo7">el <?php echo $row_Recordset1['fecha']; ?> a las <?php echo $row_Recordset1['hora']; ?></span></span></span></td> <td width="439" rowspan="3" align="center" valign="middle"> <?php if ($row_Recordset1['tipo']=Youtube) { echo '<object width="425" height="344"><param name="movie" value="paginayoutube/v/'.$row_Recordset1['datostube'].'&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="paginayoutube/v/'.$row_Recordset1['datostube'].'&color1=0xb1b1b1&color2=0xcfcfcf&feature=player_embedded&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object>'; } else {echo '<p class="Estilo9"><img src="imagenes/image.png" width="343" height="65"></p>';}?></td> </tr> <tr> <td height="44" align="center" valign="middle" bordercolor="#FFFFFF"><span class="Estilo4">Link:<br> <span class="Estilo6"><a href="<?php echo $row_Recordset1['Links']; ?>" target="_blank"><?php echo $row_Recordset1['Links']; ?></a></span> </span></td> </tr> <tr> <td height="151" align="center" valign="middle" bordercolor="#FFFFFF"><p class="Estilo4">Comentario:<br> <span class="Estilo6"><?php echo $row_Recordset1['Comentario']; ?></span> </p></td> </tr> </table> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?></td></body></html>
Yo supongo que el problema está en el condicional dentro del bucle como si el condicional solo lo tuviese en cuenta la primera vez.
Si es asi, como lo soluciono?
Gracias!