Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- while($obj = mysqli_fetch_object($result)){
- $statustranssacao = $obj->StatusTransacao;
- $idclientelw = $obj->CliCod;
- $bidcheck = "select * from bid_account where user_id = '".$idclientelw."";
- $bidcheck_query = mysqli_query($db, $bidcheck) or die();
- $bidcheck_obj = mysqli_fetch_object($bidcheck_query);
- $transacao_info = $bidcheck_obj->credit_description;
- $transacao_explode = explode("- ", $transacao_info);
- // o valor de $transacao_info seria algo como: PAGAMENTO - 123456789
- // o valor de $statustranssacao seria somente o código: 123456789
- ?>
- <tr>
- <td nowrap="nowrap" align="center"><? if ($transacao_explode[1]=='$statustranssacao'){?>NAO<? } else { ?>SIM<? } ?> </td>
- </tr>
- <? } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement