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>";

?>

the inequalities were backwards just in case anyone was wondering

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.