I have the results from a database, which i am trying to display in either a table or using css etc.
At the moment it displays...
Translator Search
Name Languages Spoken
test: English,French,Spanish,German
glen simister: English,French
glen simister: English,French,Spanish,German
However i would like it to be formatted in two columns like this (without the dashes).
Name-------------------------Languages Spoken
test---------------------------English,French,Spanish,German
glen simister----------------English,French
glen simister----------------English,French,Spanish,German
here is the code...
Code: Select all
$database->setQuery($query);
$rows = $database->loadObjectList();
echo "<h2>Translator Search</h2><br />";
echo "Name Languages Spoken<br /> ";
foreach ( $rows as $row ) {
echo "$row->name: $row->languages_spoken<br />";
}
Thanks.