par
albat » 11 avr. 2006, 18:10
Je me permets de te suggérer l'écriture suivante, un brin plus légère...
echo "<a href='photos_vue.php?Pos=".$data['Id']."'>";
echo " <img src='Photos/".$data['Ref_Image']."' ".($width>$height ? "width='150' height='100'" : "width='100' height='150'").">";
echo "</a>";
Au fait, c'est quoi, le
center qui traîne dans ta balise <img /> ???

Je me permets de te suggérer l'écriture suivante, un brin plus légère...
[php]echo "<a href='photos_vue.php?Pos=".$data['Id']."'>";
echo " <img src='Photos/".$data['Ref_Image']."' ".($width>$height ? "width='150' height='100'" : "width='100' height='150'").">";
echo "</a>";[/php]
Au fait, c'est quoi, le [b]center[/b] qui traîne dans ta balise <img /> ??? :shock: