I’m making a page for a friend. He will add some text an upload some pictures to the page. All this is saved in MySql. He have the possibility to upload 5 pictures to each text. If he the only upload 2 pictures we will have some boxes with a red x.
Then I made this.
and I believe I have forgotten something.
<?php if($row_Bilder['bilde1'] != "") { ?> <div align="center"><a href="<?php echo $row_Bilder['bilde1']; ?>"><img src="<?php echo $row_Bilder['bilde1']; ?>" width="80" height="80" border="0"></a></div> <?php } ?></td><td width="103"> <?php if($row_Bilder['bilde2'] != "") { ?> <div align="center"><a href="<?php echo $row_Bilder['bilde2']; ?>"><img src="<?php echo $row_Bilder['bilde2']; ?>" width="80" height="80" border="0"></a></div> <?php } ?> </tr>
.
This is almost working.
the only thing is that picture nr 1 ($row_Bilder['bilde1') will not show on the page. But picture 2 is working. STRANGE
This has been killing me. I need really some help.
Take a look.
vanvara.net