Hi, I'm having trouble getting this to run. basically I'm trying to get a table to display miles per gallon into liters per 100 kilometers in increments of 10. Every time i run it though, it just displays the table header without any results. Any advice would really be appreciated
<?php
//create table
echo "<table width='50%' align='center' border='1'>";
echo "<tr>
<th>MPG</th>
<th>KMPL</th>
</tr>";
for ($mpg = 10; $mpg >50; $mpg+=5)
{
printf("<tr><td>%d </td><td>%f <td></tr><br />", $mpg, $mpg*42.5143707);
}
echo"</table>";
?>