Bläddra i källkod

Working version of showing results of table in a HTML table

pull/1/head
Dylan 4 år sedan
förälder
incheckning
901ed9cfec
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      index.php

+ 2
- 2
index.php Visa fil

$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>"



Laddar…
Avbryt
Spara