Take data from array

Asked

Viewed 40 times

0

Good morning

I have the following array

Array ( [0] => Array ( [ID] => 2 [UltimaAtualizacao] => 2017-04-20 16:15:00 [DataEntrada] => 2017-04-20 [Estado] => Finalizado [DataSaida] => [Relatorio] => Manutenção ) )

my doubt is how I separate the array data into a table with the name above and the value below ?

1 answer

0

Solution

<tr>
    <td><?php print_r($rows[0]['ID']); ?></td>
    <td><?php print_r($rows[0]['DataEntrada']); ?></td>
    <td><?php print_r($rows[0]['UltimaAtualizacao']); ?></td>
    <td><?php print_r($rows[0]['Estado']); ?></td>
    <td><?php print_r($rows[0]['DataSaida']); ?></td>
    <td><center><img src="images/ico/Graphicloads-Filetype-Pdf.ico" width="30px" height="30px"</center></td>
</tr>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.