$dados = mysql_fetch_array($rsqry);
    // Total de registro
    $totalreg = mysql_num_rows($rsqry);
    if (trim($totalreg) == "") {
        $totalreg = "0";
    }
    // Inicia Contador
    $ct = 1;
    while (!($dados == 0)) {
        $dessolicitante = RecUsuarioSol($dados['codsolicitacao']);
        // Recupera o nome e o cpf do conta corrente do cliente
        $sqlString2 = "select c.nomcliente, c.numcpfcnpj from contacorrente cc, cliente c\n\t               where cc.numcontacorrente = '" . $dados['numcontacorrente'] . "'" . "\n\t\t\t\t    and cc.codcliente = c.codcliente";
        $rsqry1 = mysql_query($sqlString2);
        $dadosconta = mysql_fetch_array($rsqry1);
        $codsolicitacao1[$ct] = $dados["codsolicitacao"];
        $numcontacorrentev[$ct] = Formatacc($dados["numcontacorrente"]);
        $nomclientev[$ct] = $dadosconta["nomcliente"];
        $dtsolicitacao[$ct] = $dados["dtsolicitacao"];
        $hrsolicitacao[$ct] = $dados["hrsolicitacao"];
        $destiposervsol[$ct] = $dados["destiposervsol"];
        $ct++;
        $dados = mysql_fetch_array($rsqry);
    }
    ?>
<table border="1" width="600" cellpadding="0" cellspacing="3">
  <tr>
      <td width="5" align="right">&nbsp;</td>
      <td><strong><b>Total de solicitações: <?php 
    echo $totalreg;
    ?>
</b></strong></td>
Exemple #2
0
<form name="form" method="post" action="" onSubmit="return VerificaCamposObrigatorios();">
<table width="600" border="0">
		<tr >
			<td width="5"></td>
			<td width="90" class="td6" align="right"><strong>Nome</strong></td>
			<td align="left" class="td6"><strong><input type="text" size="50" name="nomcliente" id="nomecliente" value="<?php 
    echo $nomcliente;
    ?>
" disabled="disabled"></strong></td>		
		</tr>
		<tr >
			<td width="5"></td>
			<td width="90" class="td6" align="right"><strong>Conta Corrente</strong></td>
			<td class="td6" align="left"><strong><input type="text" size="7" name="numcontacorrente" id="numcontacorrente" value="<?php 
    echo Formatacc($numcontacorrente);
    ?>
" disabled="disabled"></strong></td>		
		</tr>
		<tr >
			<td width="5"></td>
			<td width="90" class="td6" align="right"><strong>Email</strong></td>
			<td class="td6" align="left"><strong><input type="text" size="50" maxlength="40" name="emailRemetente" id="emailRemetente" ></strong></td>		
		</tr>
		<tr >
			<td width="5"></td>
			<td class="td6" width="90" align="right"><strong>Assunto</strong></td>
			<td class="td6" align="left"><strong><input type="text" size="30" maxlength="25" name="assunto" id="assunto" ></strong></td>		
		</tr>
		<tr >
			<td width="5"></td>