16. november 2004 - 22:07
Der er
8 kommentarer og 1 løsning
visning af billede hvis aktiv?
Hej alle sammen, jeg skal bruge et script som gør at man ikke kan se de felterne som hedder <?=$row[gridto]?> <?=$row[gridtre]?> <?=$row[gridfire]?> <?=$row[gnavnto]?> <?=$row[gnavntre]?> <?=$row[gnavnfire]?> og linksne grid.php?id=<?=$row['gidto']?> grid.php?id=<?=$row['gidtre']?> grid.php?id=<?=$row['gidfire']?> Hvis der ikke står noget i dem i min Mysql. Men hvis der så står noget skal de naturligvis vises.. min kode ser sådan her ud: <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="18%"><span class="style1"><img src="<?=$row[griden]?>" width="60" height="60"></span></td> <td width="26%"><span class="titel"> <?=$row[gnavnen]?> </span></td> <td width="18%"><span class="style1"><img src="<?=$row[gridto]?>" width="60" height="60"></span></td> <td width="38%"><span class="titel"> <?=$row[gnavnto]?> </span></td> </tr> <tr> <td colspan="2"> <div align="right" class="style2"><a href="grid.php?id=<?=$row['giden']?>" class="style1">Læs specifikationerne </a></div></td> <td colspan="2"><div align="right"><span class="style2"><a href="grid.php?id=<?=$row['gidto']?>" class="style1">Læs specifikationerne</a> </span></div></td> </tr> <tr> <td><span class="style1"><img src="<?=$row[gridtre]?>" width="60" height="60"></span></td> <td><span class="titel"> <?=$row[gnavntre]?> </span></td> <td><span class="style1"><img src="<?=$row[gridfire]?>" width="60" height="60"></span></td> <td><span class="titel"> <?=$row[gnavnfire]?> </span></td> </tr> <tr> <td colspan="2"><div align="right"><span class="style2"><a href="grid.php?id=<?=$row['gidtre']?>" class="style1">Læs specifikationerne </a></span></div></td> <td colspan="2"><div align="right"><span class="style2"><a href="grid.php?id=<?=$row['gidfire']?>" class="style1">Læs specifikationerne</a> </span></div></td> </tr> </table> Håber meget i kan hjælpe!
Annonceindlæg fra Deloitte
16. november 2004 - 22:30
#3
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="18%"><span class="style1"> <?php if (!empty($row['griden'])) { ?> <img src="<?=$row[griden]?>" width="60" height="60"> <?php } ?> </span></td> <td width="26%"><span class="titel"> <?php if (!empty($row['gnavnen'])) { ?> <?=$row[gnavnen]?> <?php } ?> </span></td> <td width="18%"><span class="style1"> <?php if (!empty($row['gridto'])) { ?> <img src="<?=$row[gridto]?>" width="60" height="60"> <?php } ?> </span></td> <td width="38%"><span class="titel"> <?php if (!empty($row['gnavnto'])) { ?> <?=$row[gnavnto]?> <?php } ?> </span></td> </tr> <tr> <td colspan="2"> <div align="right" class="style2"> <?php if (!empty($row['giden'])) { ?> <a href="grid.php?id=<?=$row['giden']?>" class="style1">Læs specifikationerne </a> <?php } ?> </div></td> <td colspan="2"><div align="right"><span class="style2"> <?php if (!empty($row['gidto'])) { ?> <a href="grid.php?id=<?=$row['gidto']?>" class="style1">Læs specifikationerne</a> <?php } ?> </span></div></td> </tr> <tr> <td><span class="style1"> <?php if (!empty($row['gridtre'])) { ?> <img src="<?=$row[gridtre]?>" width="60" height="60"> <?php } ?> </span></td> <td><span class="titel"> <?php if (!empty($row['gnavntre'])) { ?> <?=$row[gnavntre]?> <?php } ?> </span></td> <td><span class="style1"> <?php if (!empty($row['gridfire'])) { ?> <img src="<?=$row[gridfire]?>" width="60" height="60"> <?php } ?> </span></td> <td><span class="titel"> <?php if (!empty($row['gnavnfire'])) { ?> <?=$row[gnavnfire]?> <?php } ?> </span></td> </tr> <tr> <td colspan="2"><div align="right"><span class="style2"> <?php if (!empty($row['gridtre'])) { ?> <a href="grid.php?id=<?=$row['gidtre']?>" class="style1">Læs specifikationerne </a> <?php } ?> </span></div></td> <td colspan="2"><div align="right"><span class="style2"> <?php if (!empty($row['gidfire'])) { ?> <a href="grid.php?id=<?=$row['gidfire']?>" class="style1">Læs specifikationerne</a> <?php } ?> </span></div></td> </tr> </table>