PDO Database Auto Table Creator
Ok, so I'm happy with the foreach loops now.

To get the Table names where I wanted them I simply had to encapsulate the PHP in HTML tags:

&lt;?php print_r($phpCore-&gt;getDbTables()); ?&gt;
&lt;div&gt;
&lt;form&gt;
&lt;table&gt;
&lt;?php
foreach($phpCore-&gt;getDbTables() as $tablename) {
    echo '&lt;tr&gt;&lt;td&gt;'.$tablename.'&lt;/td&gt;&lt;/tr&gt;';
    echo '&lt;tr&gt;';
    foreach($phpCore-&gt;getColumnNames($tablename) as $fieldnames) {
        echo '&lt;td&gt;'.$fieldnames.'&lt;/td&gt;';    
    }
    echo '&lt;/tr&gt;';

    echo '&lt;tr&gt;';
    foreach($phpCore-&gt;populateTable($tablename) as $tabledata) {
        echo '&lt;td&gt;&lt;input type="text" value="'.$tabledata.'"&gt;&lt;/input&gt;&lt;/td&gt;';
    }   
    echo '&lt;/tr&gt;';

}
?&gt;
&lt;/table&gt;
&lt;/form&gt;
&lt;/div&gt;