Jump to content

[SOLVED] While Loop not returning the first row?


ifusion

Recommended Posts

Hey,

 

My while loop isn't returning the first row, only the second and third rows of data etc? Why is that and how do i fix it?

 

<?php while($row = mysql_fetch_array($result)) {
			echo "<tr>";
			echo "<td>". $row['invoice_date']. "</td>";
			echo "<td>". $row['due_in']. " days". "</td>";
			echo "<td>". $row['invoice_id']. "</td>";
			echo "<td>". $row['client_name']. "</td>";
			echo "<td align=\"right\">"."$". $row['amount_due']. "</td>";
			echo "</tr>";
} ?>

 

Cheers,

Fusion.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.