0
I have a page php
who brings me a registration list, but he brings a array
and would like every item of it to come in divs
or table with rows.
Down with 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);
He returns to 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 wish something like this would come:
<tr>703</tr>
<tr>704</tr>
<tr>719</tr>
...
Thank you!
What do I want is one in each tr, the one from SELECT CONCAT as use? vlw!!
– Leandro Teraoka
he returned everything in sequence using foreach: 703704719716719722724725729730732733735736737744
– Leandro Teraoka
Probably because it was rendered by the browser, give it a F12 or CTRL+U, and check that there will be
tr
.– Inkeliz