Hiding database information in php

Asked

Viewed 49 times

0

Code:

foreach ($controller->ListaDados($objCheck) as $objCheck) { ?>
<table bordercolor="grey" border="1" class="container">
  <tbody>
    <tr> 
      <td colspan="2" align="Center"><?php echo $objCheck->getemail(); ?></td>
    </tr>
  </tbody>
</table>
<?php } ?>

In that echo is showing the following information.

inserir a descrição da imagem aqui

Bank string:

Prezado Cliente <b><br><br>Pedido: <b>4264136</b>, NF: <b>1448692</b> <br>Pedido: <b>4264138</b>, NF: <b>1448693</b> <br>Pedido: <b>4264140</b>, NF: <b>1448694</b> <br><br>Data: <b>2015-12-08 10:37:49</b> Hora: <b>2015-12-08 10:37:49</b><br><br>Link do comprovante: <br><br><img src='cid:1krrpu5mb4br3'/>

Is there any way to show only the Requests and NF treating this in php and not in the bank ? Why is this all that interests me.

'Cause the column inside the bank has all this information and I didn’t want to touch it.

  • Put the rest of the code, as it is not like this bringing this, whether it is in a query or whether it is through a foreach. And what would show only orders and NF, would be just a record, or just these fields of your table?

  • What I’m showing you is a field, this field has all this information, I wanted to know if there is any way to consult this field and not bring me everything, only the requests and NF. I edited the code.

  • Unfortunately I could not understand until now how this structured your code/ Bank, if for example the date and link are in the bank, vc must print in your foreach the name of the fields in each TD tag

  • But it is not every field, all this above comes from one field only. Date, Nf request link all this above is in one field only. Each information is not in a separate field.

  • Then complicated, you have to separate snippets of Strings and assemble in a table, would need to check how this saved in the table and so you create some method that takes certain snippets of the code, using a pointer to define where to start and where to stop reading column data.

  • 1

    The matter was addressed in http://answall.com/questions/129381/filtro-consulta-sql.

Show 1 more comment
No answers

Browser other questions tagged

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