Being a good programmer you already know how to walk the object, but using something like @StarLion ; 's code
PHP Code:
function tableize($in) {
echo "<table>";
foreach($in AS $key => $value) {
if(is_array($value)) {
echo "<tr><td>$key:".tableize($value)."</td></tr>";
} else {
echo "<tr><td>$key: $value</td></tr>";
}
}
echo "</table>";
}
tableize($result);
And then creating and linking a CSS style sheet like
HTML Code:
table {
width: 80%;
padding: 0;
margin: 10px;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
/* remove this to stop the centering of the table */
margin: 5px auto 30px auto;
/* ensure that the backround of the table is white */
background-color: #fff;
/* the shadow wrapping around the table. Remove all lines
below if you don't like this effect */
-webkit-box-shadow: 3px 3px 10px 8px rgba(0,0,0,0.4);
-moz-box-shadow: 3px 3px 10px 8px rgba(0,0,0,0.4);
box-shadow: 3px 3px 10px 8px rgba(0,0,0,0.4);
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
th {
border: 1px solid #525C67;
background-color: #7B92AD;
color: #fff;
letter-spacing:2px
padding: 5px;
/* the rounded corners wrapping around each cell. Remove next
three lines to have angled corners */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
/* the shadow wrapping around each cell. Remove all lines
below if you don't like this effect */
-moz-box-shadow: inset -3px -3px 3px #888;
-webkit-box-shadow: inset -3px -3px 3px #888;
box-shadow: inset -3px -3px 3px #888;
}
td {
border: 1px solid #525C67;
color: #274E7D;
padding: 5px;
/* the rounded corners wrapping around each cell. Remove next
three lines to have angled corners */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
/* the shadow wrapping around each cell. Remove all lines
below if you don't like this effect */
-moz-box-shadow: inset -3px -3px 3px #888;
-webkit-box-shadow: inset -3px -3px 3px #888;
box-shadow: inset -3px -3px 3px #888;
}
And here is a test table so you can decide if you like it:
HTML Code:
<table>
<tr>
<th>One</th>
<th>Two</th>
<th>Three</th>
</tr>
<tr>
<td>This is the first</td>
<td>This is the second</td>
<td>This is the thrird</td>
</tr>
</table>
The color scheme is this: http://colorschemedesigner.com/#3C51Tw0w0w0w0
You can play around with different schemes although blue is generally the most respected for business crowd.
I don't know if this helps but it was worth a try 
Steve
Bookmarks