This commit is contained in:
KANE LAZENI 2026-01-05 12:32:26 +00:00
parent 87c13fd034
commit c81867e54a
3 changed files with 5 additions and 4 deletions

View File

@ -62,8 +62,8 @@ class ControleurRechercherassure extends Controleur {
$derniernumerobeneficiaires = '0';
}
// if (count($beneficiaires) == 1)
if ($beneficiaires->rowCount() == 1)
if (count($beneficiaires) == 1)
// if ($beneficiaires->rowCount() == 1)
{
var_dump(
array(

View File

@ -16,7 +16,8 @@ class Beneficiaire extends Modele {
$sql = 'call sp_r_recherche_beneficiaire_vide();';
$beneficiaire = $this->executerRequete($sql);
return $beneficiaire;
// return $beneficiaire;
return $resultat ->fetchAll(PDO::FETCH_ASSOC);
}
public function getBeneficiaires($nomBeneficiaire, $prenomsBeneficiaire, $telephonePortable, $email)

View File

@ -2,7 +2,7 @@
// $this->titre = "INTER SANTE - "._("Rechercher assuré") ;
?>
<form id="frmrecherche" name="frmrecherche" method="post" action="Recherche/index/">
<form id="frmrecherche" name="frmrecherche" method="post" action="Rechercherassure/index/">
<fieldset>
<legend> <?= _("Critères de recherche de l'assuré") ?> </legend>