Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. <?
  2.  
  3.  
  4. while($obj = mysqli_fetch_object($result)){
  5. $statustranssacao = $obj->StatusTransacao;
  6. $idclientelw = $obj->CliCod;
  7.  
  8.  
  9. $bidcheck = "select * from bid_account where user_id = '".$idclientelw."";
  10. $bidcheck_query = mysqli_query($db, $bidcheck) or die();
  11. $bidcheck_obj = mysqli_fetch_object($bidcheck_query);
  12. $transacao_info = $bidcheck_obj->credit_description;
  13. $transacao_explode = explode("- ", $transacao_info);
  14.  
  15. // o valor de $transacao_info seria algo como: PAGAMENTO - 123456789
  16. // o valor de $statustranssacao seria somente o código: 123456789
  17.  
  18. ?>
  19.  
  20.  
  21. <tr>
  22. <td nowrap="nowrap" align="center"><? if ($transacao_explode[1]=='$statustranssacao'){?>NAO<? } else { ?>SIM<? } ?> </td>
  23. </tr>
  24. <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement