Hello im trying to put mysql results into html tables for a hosting package type script but it is not working.
I need it to be like.
|--------------|---------------|------------|------------|
| package #| package1 |package2| package3|
|---------------|---------------|------------|------------|
| feature # | feature1 | feature1 | feature 1|
|---------------|---------------|-------------|------------|
and so forth
here is a link to what it is doing now
http://trebis.com/test.php
As you can see it is not displaying right
Here is my code
$conn = db_connect();
$result = $conn->query("select * from tblproducts where gid='2'");
if (!$result) {
return false;
}
echo "<table><tr>";
for ($count=0; $row = $result->fetch_object(); $count++) {
$package = "<td>$row->name</td>";
$bandwidth = "<td>$row->configoption3</td>";
echo "$package";
echo "$bandwidth";
}
echo "</tr></table>";