i have this table to display data from my database dynamically
<table border="1">
<th>PO</th>
<th>Fuel Details ID</th>
<th>Date</th>
<th>Price</th>
<th>Liters</th>
<th>Previous Balance</th>
<th>Hobo</th>
<th>Truck ID</th>
<th>Fuel Source</th>
<th>Date</th>
<th>Route</th>
<th>Destination</th>
<th>Number of Vans</th>
<th>Stripping</th>
<th>Truck ID</th>
<th>Customer ID</th>
<th>Driver ID</th>
<th>PO ID</th>
<th>Waybill ID</th>
<?php do { ?>
<tr>
<td><?php echo $row_PKFD['tbl_po_id_po']; ?></td>
<td><?php echo $row_PKFD['id_fuel_details']; ?></td>
<td><?php echo $row_PKFD['fuel_details_date']; ?></td>
<td><?php echo $row_PKFD['fuel_details_price']; ?></td>
<td><?php echo $row_PKFD['fuel_details_liters']; ?></td>
<td><?php echo $row_PKFD['fuel_details_previous_bal']; ?></td>
<td><?php echo $row_PKFD['fuel_details_hobo']; ?></td>
<td><?php echo $row_PKFD['tbl_truck_id_truck']; ?></td>
<td><?php echo $row_PKFD['tbl_fuel_source_id_fuel_source']; ?></td>
<?php do { ?>
<td><?php echo $row_PKDD['delivery_details_date']?></td>
<td><?php echo $row_PKDD['delivery_details_route']?></td>
<td><?php echo $row_PKDD['delivery_details_destination']?></td>
<td><?php echo $row_PKDD['delivery_details_van_no']?></td>
<td><?php echo $row_PKDD['delivery_details_strip_stuff']?></td>
<td><?php echo $row_PKDD['tbl_truck_id_truck']?></td>
<td><?php echo $row_PKDD['tbl_customer_id_customer']?></td>
<td><?php echo $row_PKDD['tbl_driver_id_driver']?></td>
<td><?php echo $row_PKDD['tbl_po_id_po']?></td>
<td><?php echo $row_PKDD['tbl_waybill_id_waybill']?></td>
</tr>
<?php } while ($row_PKDD = mysql_fetch_assoc($PKDD)); ?>
<?php } while ($row_PKFD = mysql_fetch_assoc($PKFD)); ?>
</table>
the first displays the first instance if the program finds two or more data related to the first it will make another which is in the below code as you can see my problem is when i display the first and the first instance of the second are aligned but when the program finds another data related to the first it will make another but not inline on the second i want it to show that the first will be aligned with the first instance of the second and the second instance of the second will be below the first instance of the second
The first picture shows what is displayed by the code
the second picture shows what i want to display