Udskriv $bord_1 første gang - udskriv $bord_2 næste gang osv.
Jeg har følgende data.....$bord_1 = $gangefaktor_for_sojle*$antal_bord_nr_1+40;
$bord_2 = $gangefaktor_for_sojle*$antal_bord_nr_2+40;
som jeg gerne vil udskrive på denne måde.
--- DETTE ER KUN ET UDDRAG.---
<?
$query1 = mysql_query("select * from ord ORDER BY dato, tid");
while($getter1 = mysql_fetch_array($query1))
{
?>
<td width="100" height="450" align="center" valign="bottom"><img src="pic/_top.png" alt="" width="101" class="ord_top"/><img src="pic/_midt.png" alt="" width="101" height="<? echo $bord_1; ?>" class="ord_midt"/><img src="pic/_bund.png" alt="" width="101" class="ord_bund"/><td width="0" height="450" align="center" valign="bottom" background="pic/mellemrum_for_ord.png"><img src="pic/mellemrum_for_ord.png" alt="" width="1" height="1" /></td>
<? } ?>
er det muligt at første gang at denne køres at der tages data fra
<? echo $bord_1; ?>
og næste gang bliver der taget data fra
<? echo $bord_2; ?>
og næste gang bliver der taget data fra
<? echo $bord_3; ?>
OSV.
Sådan at det færdige resultat ser sådan ud.
<td width="100" height="450" align="center" valign="bottom"><img src="pic/_top.png" alt="" width="101" class="ord_top"/><img src="pic/_midt.png" alt="" width="101" height="<? echo $bord_1; ?>" class="ord_midt"/><img src="pic/_bund.png" alt="" width="101" class="ord_bund"/><td width="0" height="450" align="center" valign="bottom" background="pic/mellemrum_for_ord.png"><img src="pic/mellemrum_for_ord.png" alt="" width="1" height="1" /></td>
<td width="100" height="450" align="center" valign="bottom"><img src="pic/_top.png" alt="" width="101" class="ord_top"/><img src="pic/_midt.png" alt="" width="101" height="<? echo $bord_2; ?>" class="ord_midt"/><img src="pic/_bund.png" alt="" width="101" class="ord_bund"/><td width="0" height="450" align="center" valign="bottom" background="pic/mellemrum_for_ord.png"><img src="pic/mellemrum_for_ord.png" alt="" width="1" height="1" /></td>
<td width="100" height="450" align="center" valign="bottom"><img src="pic/_top.png" alt="" width="101" class="ord_top"/><img src="pic/_midt.png" alt="" width="101" height="<? echo $bord_3; ?>" class="ord_midt"/><img src="pic/_bund.png" alt="" width="101" class="ord_bund"/><td width="0" height="450" align="center" valign="bottom" background="pic/mellemrum_for_ord.png"><img src="pic/mellemrum_for_ord.png" alt="" width="1" height="1" /></td>
OSV.....
