I have a page with php
that brings me a list of records, however it brings a array
and I would like every item of it to come in divs
or table with lines.
Below what I'm doing:
$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query->select('user_id');
$query->from($db->quoteName('#__tabela'));
$db->setQuery($query);
$column= $db->loadColumn();
print_r($column);
It returns me:
Array ( [0] => 703 [1] => 704 [2] => 719 [3] => 716 [4] => 719 [5] => 722 [6] => 724 [7] => 725 [8] => 729 [9] => 730 [10] => 732 [11] => 733 [12] => 735 [13] => 736 [14] => 737 [15] => 744 )
I would like something like this to happen:
<tr>703</tr>
<tr>704</tr>
<tr>719</tr>
...
Thank you!