x

Besoin d'aide résolution erreur script php

 
01/04/2012 11:00 #11
bon j'ai plus d'erreur mais la requete ne s'affiche pas ! la page est vide.

voici la partie du code concerné de la page :

<div id="Layer6" style="position:absolute; width:613px; height:21px; z-index:13; left: 24px; top: 101px;"> 
  <?php
 $ident 
"";
$_GET[$ident] = $ident;
  
$prod=$ident;
 
$nom "";
$_GET[$nom] = $nom;
  
$titre=$nom;
  
$sql="SELECT * FROM produits WHERE id_prod='$prod'";            
  
$rqt=mysql_query($sql);
  
?>
    <table width="740" border="0" cellspacing="0" cellpadding="0">
    <tr>
      
      <td valign="top">&nbsp; </td>
      
      <td valign="top">
      <table width="650" border="0" align="right" cellpadding="0" cellspacing="0" class="rouge">
          <tr> 
            <td bgcolor="#EE3424" class="bas"><div align="center"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong><?php echo $titre ?></strong></font></div></td>
          </tr>
          <?php
              $i
=0;
              while (
$resultat=mysql_fetch_object($rqt)) {
                
$i++;
                
$ptr=$resultat->id_prod.$i;
          
?>
          <tr> 
            <td height="10" class="bas"><img src="../images/produits/cale.gif" width="1" height="8"></td>
          </tr>
          <tr> 
            <td class="bas"><table width="95%" border="0" align="right" cellpadding="5" cellspacing="0">
                <tr>
                  <td><font color="#999999" size="2" face="Arial, Helvetica, sans-serif"><a href="<?php echo "detail.php?lib=".$resultat->libelle."&refc=".$ptr ?>"><strong><?php echo $resultat->libelle ?></strong></a></font></td>
                </tr>
              </table></td>
          </tr>
        <?php
            
}
        
?>
        </table>

Visiteur
VI
anonyme
Groupe :
Visiteur
Annonces
Publicité
anonyme
01/04/2012 11:33 #12
Regardes dans logs si il n'y a pas une erreur.

Désolé pour le code qui semble mettre à l'envers le forum, et là bug aussi de notre coté sans trop comprendre pourquoi il ne veut pas s'afficher smiley

Quand tu montres la lune du doigt, l'imbécile regarde le doigt.
cthierry
Tsonaute
membre
Inscrit
12/07/2002 08:37
De
Seine et Marne
Groupe :
Webmaster
Messages
15926
01/04/2012 16:22 #13
c'est où logs ?

Julien
JU
anonyme
Groupe :
Visiteur
01/04/2012 16:30 #14
je retente de mettre le code entre "" :

<?php
 $ident 
"";
 
$_GET[$ident] = $ident;
  
$prod=$ident;
 
$nom "";
 
$_GET[$nom] = $nom;
  
$titre=$nom;
  
$sql="SELECT * FROM produits WHERE id_prod='$prod'";            
  
$rqt=mysql_query($sql);
  
?>
    <table width="740" border="0" cellspacing="0" cellpadding="0">
    <tr>
      
      <td valign="top">&nbsp; </td>
      
      <td valign="top">
      <table width="650" border="0" align="right" cellpadding="0" cellspacing="0" class="rouge">
          <tr> 
            <td bgcolor="#EE3424" class="bas"><div align="center"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong><?php echo $titre ?></strong></font></div></td>
          </tr>
          <?php
              $i
=0;
              while (
$resultat=mysql_fetch_object($rqt)) {
                
$i++;
                
$ptr=$resultat->id_prod.$i;
          
?>
          <tr> 
            <td height="10" class="bas"><img src="../images/produits/cale.gif" width="1" height="8"></td>
          </tr>
          <tr> 
            <td class="bas"><table width="95%" border="0" align="right" cellpadding="5" cellspacing="0">
                <tr>
                  <td><font color="#999999" size="2" face="Arial, Helvetica, sans-serif"><a href="<?php echo "detail.php?lib=".$resultat->libelle."&refc=".$ptr ?>"><strong><?php echo $resultat->libelle ?></strong></a></font></td>
                </tr>
              </table></td>
          </tr>
        <?php
            
}
        
?>
        </table>"




et ca c'est la partie du code du fichier "detail.php" :



"<div id="Layer6" style="position:absolute; width:613px; height:176px; z-index:13; left: 24px; top: 101px;"> 
  <?php
  $ref
=$refc;
  
$sql="SELECT * FROM reference_art WHERE id_ref='$ref' order by num";            
  
$rqt=mysql_query($sql);
  
?>
  <table width="740" border="0" cellspacing="0" cellpadding="0">
    <tr>
      
      <td valign="top">&nbsp; </td>
      
      <td valign="top">
      <table width="730" border="0" align="right" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="154" height="20">&nbsp;</td>
            <td width="574" bgcolor="#EE3424">
<div align="center"><font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><strong><?php echo $lib ?></strong></font></div>
              </td>
          </tr>
          <tr> 
            <td colspan="2">
            <table width="100%" border="0" align="left" cellpadding="8" cellspacing="0">
                <?php
                    
while ($resultat=mysql_fetch_object($rqt)) {
                  
?>
                <tr>
                <?php
                
if ($resultat->image!="rien.gif") {
                
?>
                  <td width="154" class="droite"><div align="right"><font color="#999999" size="2" face="Arial, Helvetica, sans-serif"><a href="fen.php?refe=<?php echo $resultat->ref ?>&im=<?php echo $resultat->image ?>" onclick="navigation();" target="fenetre"><img src="../images/catalogue/<?php echo $resultat->image ?>" border="0"></a></font></div></td>  
                <?php
                
}
                else {
                
?>
                  <td width="154" class="droite"><div align="right"><font color="#999999" size="2" face="Arial, Helvetica, sans-serif"><img src="../images/catalogue/<?php echo $resultat->image ?>" border="0"></font></div></td>  
                <?php
                
}
                if (
$resultat->type==1) {
                
?>
                    <td width="556" class="basdroite"><div align="justify"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><?php echo $resultat->titre ?></font><br><br>
                    <?php echo $resultat->texte ?>
                </tr>
                <?php
                
}
                else {
                
?>
                  <td width="556" class="basdroite"><div align="justify"><font color="#000000" size="2" face="Arial, Helvetica, sans-serif"><?php if($resultat->type==0) {echo $resultat->ref;} else {echo "<font color=#000000 size=2 face=Arial, Helvetica, sans-serif>".$resultat->titre."</font>";} ?></font><br>
                      <br>
                      <font color="#999999" size="2" face="Arial, Helvetica, sans-serif"><?php echo nl2br($resultat->texte?></font></div></td>
                </tr>
                <?php
                    
}}
                
?>
              </table>"

Visiteur
VI
anonyme
Groupe :
Visiteur
01/04/2012 17:54 #15

Julien a écrit :
c'est où logs ?

Sur le serveur tu dois avoir des fichiers d'erreurs que tu peux visualiser, des fichiers logs.

Quand tu montres la lune du doigt, l'imbécile regarde le doigt.
cthierry
Tsonaute
membre
Inscrit
12/07/2002 08:37
De
Seine et Marne
Groupe :
Webmaster
Messages
15926
Vous souhaitez contribuer à ce sujet ?
Vous avez une réponse à apporter, vous avez une solution ?
Venez répondre !
C'est gratuit et aucun compte à créer pour répondre dans le forum.
Vous souhaitez poser une question ?
Vous avez une autre question, pour un nouveau sujet ?
Venez demander !
C'est gratuit et aucun compte à créer pour poser votre question dans le forum.
 
Vous avez trouvé cette réponse utile ? Partagez-la !