<?php include_once "../controller/cExpediente.php"; $expe = new cExpediente(); $lista = $expe->getContratosAc($_POST['idClte']); while ($l = $lista->NextRow()) { echo "<option value='" . $l['id_contrato'] . "'>" . $l['id_contrato'] . "</option>"; }