Commit 9da21fff authored by Loic DAVID's avatar Loic DAVID
Browse files

recherche fixed

parent 10f6b4dd
Pipeline #21275 failed with stages
in 29 seconds
......@@ -18,7 +18,7 @@
</div>
<div id="chercher">
<input type="text" placeholder="Cherchez un projet..." id="search">
<button type="submit" class="searchButton" id="submit" onclick="getProfilInfos()">
<button type="submit" class="searchButton" id="submit" onclick="rechercher()">
<i class= "fas fa-search" ></i>
</button>
</div>
......
......@@ -52,7 +52,7 @@ app.get('/recherche', function(req,res){
+' OR Cours.nom_cours LIKE "%' + req.query.motClef + '%" AND Cours.id_cours = Projet.id_cours'
+' OR Cours.prof_cours LIKE "%' + req.query.motClef + '%" AND Cours.id_cours = Projet.id_cours'
+' OR Etudiant.nom_etu LIKE "%' + req.query.motClef + '%" AND Etudiant.id_etu = EtudiantProjet.id_etu AND EtudiantProjet.id_projet = Projet.id_projet'
+' GROUP BY Projet.titre_projet,Projet.vues_projet ORDER BY Projet.vues_projet ASC '
+' GROUP BY Projet.titre_projet,Projet.id_projet,Projet.vues_projet ORDER BY Projet.vues_projet ASC '
,(err,results)=>{
if(err) throw err;
//console.log(JSON.stringify(results));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment