summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index e9e4ba6..c6f99a1 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -88,10 +88,15 @@ if (isset($data->query)) {
if (!$result)
error("Query failed!");
+ echo "<table>";
while($row=pg_fetch_row($result)){
- print_r($row);
- echo "<br />\n";
+ echo "<tr>";
+ foreach($row as $val) {
+ echo "<td>$val</tr>";
+ }
+ echo "</tr>";
}
+ echo "</table>";
}
// Finish the page