Hello, I present some content of a mysql-table in an html-table. When the query which collects the content contains few rows I get the amount of space I want between the output and the above content. But when I get for instance 60 rows, the printed result jumps down about 7 lines. I would like to have the same small gap between the result of the query and the above content.
The code is as follows: ......snip......... <table width="100%" cellpadding="0" class="alle"> <tr> <td> <strong><?php echo $row_Recordset1['mModell']; ?></strong> </td> <td align="right"> </td> </tr> <tr> <td colspan="2"> <?php //checks if there exists any rows if($totalRows_Recordset1 > 0) { ?> <table width="70%" border="0"> <tr> ..........around here the printed result jumps many rows down <td><strong>Kontonr.</strong></td> <td><strong>Delkontonr.</strong></td> <td><strong>Tekst</strong></td> <td><strong>Kostnad</strong></td> <td><strong>Enhet</strong></td> </tr> <tr><td colspan="5"></td></tr> <?php do { $kontonr = $row_Recordset1['mKontonr']; $delkontonr = $row_Recordset1['mDelkontonr']; if ($delkontonr == 0) { $strong = '<strong>'; $strong2 = '</strong>'; } else { $strong = ''; $strong2 = ''; } ?> <tr> <td><?php echo $strong . fjern_null($row_Recordset1['mHovedkonto']) . $strong2; ?></td> <td><?php echo $strong . $row_Recordset1['mDelkontonr'] . $strong2; ?></td> <td><?php echo $strong . $row_Recordset1['mKontotekst'] . $strong2; ?></td> <td><?php echo $strong . fjern_null($row_Recordset1['mKostnad']) . $strong2; ?></td> <td><?php echo $strong . $row_Recordset1['mEnhet'] . $strong2; ?></td> </tr> <!--<input name="modell" type="hidden" value="<?php //echo $modell; ?>">--> <input name="modellId" type="hidden" value="<?php echo $row_Recordset1['modellId']; ?>"> <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?> </table> <?php } //if($totalRows_Recordset1 > 0) { ?> </td> </tr> </table> ...... and so on ............ When the query returns 60 rows I get ca. 7 blank lines between <?php echo $row_Recordset1['mModell']; ?> and Kontonr. Does anyone understand? Anyone have a tip? Thanks a lot! Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php