•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 426,522 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,905 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 153 | Replies: 1 | Solved
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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 Syntax (Toggle Plain Text)
<?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>"; ?>
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Clean Previous Next Script for MySQL results (PHP)
- pagination not displaying results (PHP)
- Pass by reference in Function call results not correct (C++)
- Pagination - not displaying results properly, please help! (PHP)
Other Threads in the PHP Forum
- Previous Thread: Using php zip_open() in xampp
- Next Thread: PArse error


Linear Mode