Advertisement
CharlesCorreaWS

VerificaFormasPagamento

Jan 12th, 2015
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.43 KB | None | 0 0
  1. function VerificaFormasPagamento($IdEmpresa, $NomeFormaPagamento) {
  2.  
  3.        $Busca = mysql_query("SELECT * FROM formas_pagamento WHERE NomeFormaPagamento = '$NomeFormaPagamento' AND empresas_idEmpresas = $IdEmpresa LIMIT 1") or die(mysql_error());
  4.        $Resultado = mysql_num_rows($Busca);
  5.  
  6.        if ($Resultado)
  7.        {
  8.            return true;
  9.        }
  10.        return false;
  11.    }
  12.  
  13. VerificaFormasPagamento(1, "PagSeguro");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement