Mijn tabel komt zo niet mooi uit,

kan iemand me helpen?

<table border="1" >
<tr bgcolor="#666666">
<th colspan="6" class="style1"> Huidige Gesprekken</th>

</tr>

<tr>
<th bgcolor="#CECFCE" class="style1">Call id</th>
<th bgcolor="#CECFCE" class="style1">Datum</th>
<th bgcolor="#CECFCE" class="style1">Tijd</th>
<th bgcolor="#CECFCE" class="style1">Clip</th>
<th bgcolor="#CECFCE" class="style1">Destination</th>
<th bgcolor="#CECFCE" class="style1">Omschrijving</th>
</tr>


<?php
//resultaten opslaan
$gegevens= mysql_query ("SELECT * FROM calls " ,$connect);
$sql= mysql_query ("SELECT nummers.omschrijving FROM calls,nummers WHERE calls.destination = nummers.tel " ,$connect);


//gegevens naar het scherm schrijven

while(list($call_id,$datum,$tijd,$clip,$destination)=
mysql_fetch_row($gegevens)){
echo("<tr><td>$call_id</td><td> $datum</td><td> $tijd </td><td> $clip </td><td> $destination</td>");
}

while(list($omschrijving)=
mysql_fetch_row($sql)){
echo("<td>$omschrijving</td> </tr> <br>\n");
}

//connectie afbreken
mysql_close($connect);
?>

</table>
Wat ik meestal doe is de tabel in een WYSIWYG-editor aanmaken (zoals Frontpage bijv.), zodat ik gelijk het resultaat van de tabel zie en evt. nog handmatig aanpas voor t uiteindelijk gewenste resultaat.
Dan bouw ik de php-code er 'omheen'.

Reageren