-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrechercheMulticriteres.php
More file actions
36 lines (34 loc) · 914 Bytes
/
rechercheMulticriteres.php
File metadata and controls
36 lines (34 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
include_once("includes/AccesBase.php");
include_once("Modeles/fonction.php");
$recherche="";
$fonction;
if(empty($_SESSION)){
echo "voila";
exit();
}
else if(!empty($_POST)){
$recherche="SELECT * FROM `utilisateur` WHERE";
$Type=$_POST['listeDeroulante'];
$recherche= $recherche." Type='$Type'";
if(!empty($_POST['Taille'])){
$Taille=$_POST['Taille'];
$recherche= $recherche." AND Taille='$Taille'";
}
if(!empty($_POST['Poids'])){
$Poids=$_POST['Poids'];
$recherche= $recherche." AND Poids='$Poids'";
}
if($_POST['listeSexe']!="Tout"){
$Sexe=$_POST['listeSexe'];
$recherche= $recherche." AND Sexe='$Sexe'";
}
$rep=selectMulticriteres($db,$recherche);
$fonction = $rep->fetchall();
/*$rep = rechercheUtilisateur($db, $_POST['keywords']);
$fonction = $rep->fetchall();*/
include('Vues/rechercheMulticriteres.vue.php');
}
else {
include('Vues/rechercheMulticriteres.vue.php');
}