$row = $test->fetchall(); | $row = $test->fetchall(); | ||||
$db = null; | $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++) { | 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>" | echo "</table>" | ||||