Pardon me for jumping in, but I, too am having a problem getting my data to display. Here's where the output should display
link removed - moderatorand here's the code snippet:
link removed - moderatorand here's the code snippet:
Code:
<table>
<tr>
<th>Host Name</th>
<th>Established</th>
<th>Price</th>
<th>Disk Space</th>
<th>Bandwidth</th>
<th>Economy Plan Available</th>
<th>Allows Mailing Lists</th>
<th>Server Platform</th>
<th>SSL Included</th>
<th>eCommerce Ready</th>
<th>Affiliate Program</th>
</tr>
<?php
include("dbinfo.inc.php");
$query="SELECT * FROM webhosts ORDER BY hostname ASC";
$result = mysql_query($query)or die(mysql_error());
$num=mysql_numrows($result);
$i=0;
mysql_close();
while ($i < $num) {
$hostname=mysql_result($result,$i,"hostname");
$url=mysql_result($result,$i,"url");
$established=mysql_result($result,$i,"established");
$price=mysql_result($result,$i,"price");
$diskspace=mysql_result($result,$i,"diskspace");
$bandwidth=mysql_result($result,$i,"bandwidth");
$econplan=mysql_result($result,$i,"econplan");
$maillists=mysql_result($result,$i,"maillists");
$platform=mysql_result($result,$i,"platform");
$ssl=mysql_result($result,$i,"ssl");
$ecommerce=mysql_result($result,$i,"ecommerce");
$affiliate=mysql_result($result,$i,"affiliate");
echo "<tr><td><a href='$url'>$hostname</a></td>
<td> $established </td>
<td> $diskspace </td>
<td> $bandwidth </td>
<td> $econplan </td>
<td> $maillists </td>
<td> $platform </td>
<td> $ssl </td>
<td> $ecommerce </td>
<td> $affiliate </td></tr>";
++$i;
}
?>
</table>
Comment