bonjour,
jai cree un moteur de recherche interne mais y marche pas. jexplique mon cas rapidement.
jai rentre un enregistrement histoire de tester, et effectivement en creant un jeu denregistrement le test marche bien, mais en envoyant une requete a partir de mon moteur la ca marche plus. a tous les coups jobtiens une reponse "votre recherche na donne aucun resultat". qqn peut me dire ce qui va pas ?! merci
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 <?php if ($totalRows_resultats > 0) { // Show if recordset not empty ?> <p>Votre recherche a donne <?php echo $totalRows_resultats ?>resultats. </p> <p> </p> <table width="700" border="1"> <tr> <td width="342">Titre</td> <td width="342">Description</td> </tr> <tr> <?php do { ?> <td><?php echo $row_resultats['libel']; ?></td> <td><?php echo $row_resultats['description']; ?></td> <?php } while ($row_resultats = mysql_fetch_assoc($resultats)); ?> </tr> </table> <?php } // Show if recordset not empty ?> <?php if ($totalRows_resultats == 0) { // Show if recordset empty ?> Votre recherche n'a donne aucune resultat. <?php } // Show if recordset empty ?> <br />
Partager