Browse Source

Working version of showing results of table in a HTML table

pull/1/head
Dylan 4 years ago
parent
commit
901ed9cfec
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      index.php

+ 2
- 2
index.php View File

@@ -9,9 +9,9 @@
$row = $test->fetchall();
$db = null;

echo "<table>";
echo "<table border='1'><tr><td><b>ID</b></td><td><b>Name</b></td><td><b>Description</b></td></tr>";
for ($x=0; count($row) > $x; $x++) {
echo "<tr><td>" . $row[$x]['CategoryName'] . "</td></tr>";
echo "<tr><td>" . $row[$x]['Id'] . "</td><td>" . $row[$x]['CategoryName'] . "</td><td>" . $row[$x]['Description'] . "</td></tr>";
}
echo "</table>"


Loading…
Cancel
Save