<?php include("include/header.php"); ?>
<option>Selecione a linha de financiamento</option>
<?php
$desc = $_GET['desc'];
$customer = $_GET['customer'];
$sql = "SELECT (SELECT tipo_credito FROM tipo_credito WHERE tipo_credito.id = loan_info.credito) as nome, loan_info.credito FROM loan_info WHERE desci = '$desc' AND borrower = '$customer'";
$rs = mysqli_query($link, $sql);
while($dados = mysqli_fetch_array($rs)){
    ?>
    <option value="<?php echo $dados['credito']?>"><?php echo $dados['nome']?></option>
    <?php
}
