Bonsoir tout le monde
J'ai un problème avec un script en php voila je voulais faire une liste déroulante et sa ne marche pas
message d'ereur qui dit "mysql_fetch_row(): supplied argument is not a valid MySQL on line 13
Voici mon script s'il vous plait help me
1<?php
2// Connexion à MySQL
3$connexion = mysql_connect("localhost","root","yugioh" );
4
5
6 echo '<select size=1 name="cat">'."\n";
7 echo '<option value="-1">Choisir un client<option>'."\n";
8
9 // Récupération des informations triées par ordre alphabétique
10 $sql = "SELECT SELECT `codeClt` FROM `client`";
11 $ReqLog = mysql_query($sql, $connexion);
12
13 while ($resultat = mysql_fetch_row($ReqLog)) {
14 echo '<option value="'.$resultat[0].'">'.$resultat[1];
15 echo '</option>'."\n";
16 }
17 echo '</select>'."\n";
18?>