IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

PHP & Base de données Discussion :

warning message : wrong parameter count


Sujet :

PHP & Base de données

  1. #1
    Membre à l'essai
    Inscrit en
    Novembre 2007
    Messages
    9
    Détails du profil
    Informations forums :
    Inscription : Novembre 2007
    Messages : 9
    Points : 14
    Points
    14
    Par défaut warning message : wrong parameter count
    salut
    je cherche a afficher le contenu de plusieurs tables de ma BD sur une page en selectionnant au moins un champs dans une table , en utilisant la function mysql_fetch_array j'ai ce message d'erreur

    Warning: Wrong parameter count for mysql_fetch_array() in c:\program files\easyphp1-8\www\projet2\resultat_admin.php on line 105
    please je souhaiterais avoir un peu d'aide afin de mieux afficher les donnees sur ma page merci
    voici mon code ci-dessous :
    Code : 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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
     
     
    <?php
    echo "$IdAdmin";
     
        mysql_connect("localhost","root","");	
        mysql_select_db("Candidat1");
    	$myquery ="SELECT Candidature.CodeCandidat,Candidature.NomCandidat,Candidature.PrenomCandidat
    	            From  Candidature"  ;
    			 $rep=mysql_query($myquery);
     
     
    		       $Aquery = "SELECT Notepreuve From  ReponseCandidat  ";
    			   $repA=mysql_query($Aquery);
     
    			   $Bquery ="SELECT ReponseCandidat1.Notepreuve1 From ReponseCandidat1 ";
    			   $repB=mysql_query($Bquery);
     
    			   $Cquery="SELECT ReponseCandidat2.Notepreuve2 From ReponseCandidat2  ";
    			   $repC=mysql_query($Cquery);
     
    			   $Dquery="SELECT  ReponseCandidat3.Notepreuve3 From  ReponseCandidat3 ";
    			   $repD=mysql_query($Dquery);
     
    			   $Equery ="SELECT ResultatCandidat.Resultat From ResultatCandidat  ";
    			   $repE=mysql_query($Equery);
     
     
    ?> 
    <div align="center">
      <p>&nbsp;</p>
      <table width="495" border="2" bgcolor="#407091">
        <tr>
          <td><div>
            <div align="center" class="Style1">Resultat du Test d'&eacute;valuation </div>
          </div></td>
        </tr>
      </table>
      <table width="689" height="184" border="2">
        <tr>
          <td width="677"><form id="form1" name="form1" method="post" action="AdminTest.php">
            <div align="center"><br />
              <table width="632" height="92" border="2">
                <tr>
                  <td height="23"><div><strong>Num</strong></div></td>
                  <td><div><strong>Nom</strong></div></td>
                  <td><div><strong>Prenom</strong></div></td>
                  <td><div><strong>Note en CG</strong></div></td>
                  <td><div><strong>Note en Reseaux</strong></div></td>
                  <td><div><strong>Note en BD</strong></div></td>
                  <td><div><strong>Note en SI</strong></div></td>
                  <td><div><strong>Resultat Total</strong></div></td>
                </tr>
    			<?php 
    			      $Total=80 ;
    			     do { ?>
                <tr>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['CodeCandidat'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="left"><strong><?php echo $donnee['NomCandidat'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="left"><strong><?php echo $donnee['PrenomCandidat'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['Notepreuve'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['Notepreuve1'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['Notepreuve2'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['Notepreuve3'];?></strong></div>
                  </div></td>
                  <td><div>
                    <div align="center"><strong><?php echo $donnee['Resultat'];?></strong> Sur <strong><?php echo $Total ;?></strong></div>
                  </div></td>
                </tr>
    			<?php   }  while($donnee=mysql_fetch_array($rep,$repA,$repB,$repC,$repD,$repE)); ?>
              </table>
              <p>
                <input type="submit" name="Submit" value="Quitter" />
                </p>
              </div></form>

  2. #2
    Membre confirmé Avatar de LeGilou
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Octobre 2008
    Messages : 488
    Points : 531
    Points
    531
    Par défaut
    Bonjour,

    Pense à encadrer ton code avec les balises[CODE ] et [/CODE ]
    La ligne 105. Elle correspond à quoi ?

    Gillou.

  3. #3
    Membre à l'essai
    Inscrit en
    Novembre 2007
    Messages
    9
    Détails du profil
    Informations forums :
    Inscription : Novembre 2007
    Messages : 9
    Points : 14
    Points
    14
    Par défaut warning message
    la ligne 105 coprrespond a ceci
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <?php   }  while($donnee=mysql_fetch_array($rep,$repA,$repB,$repC,$repD,$repE)); ?>

  4. #4
    Membre confirmé Avatar de LeGilou
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    488
    Détails du profil
    Informations personnelles :
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations forums :
    Inscription : Octobre 2008
    Messages : 488
    Points : 531
    Points
    531
    Par défaut
    bah oui.
    voila la doc : mysql_fetch_array

    Tu ne peux mettre qu'une ressource SQL à la fois.

    Gillou

Discussions similaires

  1. [MySQL] Message d'erreur: Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean
    Par gennievre dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 19/03/2012, 03h51
  2. [MySQL] Message : Warning: mysqli_free_result() expects parameter 1 to be mysqli_result
    Par Alexandrebox dans le forum PHP & Base de données
    Réponses: 10
    Dernier message: 18/02/2009, 15h03
  3. [ODBC] Wrong parameter count for odbc_do()
    Par loulitta dans le forum PHP & Base de données
    Réponses: 3
    Dernier message: 04/07/2008, 08h48
  4. Erreur Wrong parameter count for opendir()
    Par makohsarah dans le forum Langage
    Réponses: 2
    Dernier message: 29/08/2007, 09h14
  5. Wrong parameter count for mysql_result()
    Par eon-of-the-scorn dans le forum Langage
    Réponses: 3
    Dernier message: 28/07/2006, 17h40

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo