Bizzar une requete sur 2 qui fonctionne

Eléphant du PHP | 114 Messages

09 juin 2006, 18:26

bonjour à tous j ai fait un moteur de recherche pour un site de Ecommerce , il ya une chose que je ne comprend pas dans mon moteur de recherche quand le client va pour rechercher le titre de l article sa ne marche pas et pourtant le systeme de menu qui est a coter fonctionne il ya aucun message d'erreur.
<table width="0%" border="0">
    <tr>
      <td><div align="left">
          <p><img src="images/tex_accueil.jpg" width="474" height="69" align="texttop"></p>
          
            
                    <form action="FairePart.php" method="get" name="form1" class="accroche">
                      <div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">S&eacute;lectionnez 
                        un th&egrave;me :</font>
                          <select name="VARtheme" id="VARtheme">
                            <?php
do {  
?>
                            <option value="<?php echo $row_rsTheme['ID']?>"><?php echo $row_rsTheme['theme']?></option>
                            <?php
} while ($row_rsTheme = mysql_fetch_assoc($rsTheme));
  $rows = mysql_num_rows($rsTheme);
  if($rows > 0) {
      mysql_data_seek($rsTheme, 0);
	  $row_rsTheme = mysql_fetch_assoc($rsTheme);
  }
?>
                          </select>
                          <font size="2" face="Verdana, Arial, Helvetica, sans-serif">ou saisissez 
                            un titre</font> :
                        <input name="VARtitre" type="text" id="VARtitre" size="12">
              <input type="submit" name="Submit" value="GO">
                      </div>
                    </form>
                    
                                
                                <span class="accrochef">
<center>
  <table width="100%" border="0">
    <tr>
      <td colspan="2">&nbsp;</td>
      </tr>
    <?php do { ?>
      <tr>
        <td width="36" rowspan="7"><a href="FicheFairePart.php?reference=<?php echo $row_rsCatalogueFairePart['reference']; ?>"><img src="./admin/<?php echo $row_rsCatalogueFairePart['miniphoto']; ?>" border="0"></a></td>
        <td width="631"></td>
      </tr>
      <tr>
        <td>Th&egrave;me: <?php echo $row_rsCatalogueFairePart['theme']; ?></td>
      </tr>
      <tr>
        <td>Titre: <?php echo $row_rsCatalogueFairePart['titre']; ?></td>
      </tr>
      <tr>
        <td>Auteur: <?php echo $row_rsCatalogueFairePart['auteur']; ?></td>
      </tr>
      <tr>
        <td>Format: <?php echo $row_rsCatalogueFairePart['format']; ?></td>
      </tr>
      <tr>
        <td>Prix: <?php echo $row_rsCatalogueFairePart['prix']; ?>€</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <?php } while ($row_rsCatalogueFairePart = mysql_fetch_assoc($rsCatalogueFairePart)); ?>
  </table>

  <table border="0" width="80%" align="center">
    <tr>
      <td width="23%" align="center"><?php if ($pageNum_rsCatalogueFairePart > 0) { // Show if not first page ?>
            <a href="<?php printf("%s?pageNum_rsCatalogueFairePart=%d%s", $currentPage, 0, $queryString_rsCatalogueFairePart); ?>">Premier</a>
            <?php } // Show if not first page ?>
      </td>
      <td width="31%" align="center"><?php if ($pageNum_rsCatalogueFairePart > 0) { // Show if not first page ?>
            <a href="<?php printf("%s?pageNum_rsCatalogueFairePart=%d%s", $currentPage, max(0, $pageNum_rsCatalogueFairePart - 1), $queryString_rsCatalogueFairePart); ?>">Pr&eacute;c&eacute;dent</a>
            <?php } // Show if not first page ?>
      </td>
      <td width="23%" align="center"><?php if ($pageNum_rsCatalogueFairePart < $totalPages_rsCatalogueFairePart) { // Show if not last page ?>
            <a href="<?php printf("%s?pageNum_rsCatalogueFairePart=%d%s", $currentPage, min($totalPages_rsCatalogueFairePart, $pageNum_rsCatalogueFairePart + 1), $queryString_rsCatalogueFairePart); ?>">Suivant</a>
            <?php } // Show if not last page ?>
      </td>
      <td width="23%" align="center"><?php if ($pageNum_rsCatalogueFairePart < $totalPages_rsCatalogueFairePart) { // Show if not last page ?>
            <a href="<?php printf("%s?pageNum_rsCatalogueFairePart=%d%s", $currentPage, $totalPages_rsCatalogueFairePart, $queryString_rsCatalogueFairePart); ?>">Dernier</a>
            <?php } // Show if not last page ?>
      </td>
    </tr>
  </table>
</center>
                                </span></div></td>
      <td><table width="0%" border="0">
          <tr>
            <td><img src="images/photo_accueil.jpg" width="175" height="260"></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
      </table></td>
    </tr>
  </table>
Merci bc d avance pour votre aide

Eléphant du PHP | 140 Messages

09 juin 2006, 20:11

Rajoute des logs et affiche le code des requetes executees... ca peut aider ;-)