0
I have the following data obtained from a query:
I would like to read this data and show it on the screen, but first show all the goals, then show all the challenges and so on.
<?php
$resultado = ibase_query($CONEXAO_TERM, QueryDashGraf1(substr($loja_selecionada, 0,3),$data_dash, $data_inicial,$ultimo_dia_f));//executa query e armazena o resultado em um array
while ($dash = ibase_fetch_row($resultado)){
echo trim($dash['0']);
}
while ($dash = ibase_fetch_row($resultado)){
echo trim($dash['3']);
}
?>
Doing so, the second While is not shown.
How do I make the data appear correctly on the screen?
I can’t understand what you want to explain better ?
– Bulfaitelo
I think I got it, you want to list the values in the order DSMTE, DSDESAFIO, that in lines, for example list all DSMETA, then list all DSDESAFIO?
– Bulfaitelo
Exactly ... in the first Whilelistar all DSMETA, in the second While list all DSDESAFIO, and so on.
– Alexandre Prezzi
The way it lists only the data of the first While in the case of DSMETA.
– Alexandre Prezzi
I’ll answer a test tell me the result of it.
– Bulfaitelo