Salut à tous !
Voilà j'ai un problème assez simple, je crois mais comme je débute au niveau procédures stockées, je suis sur un os
J'ai déjà parcouru pas mal de post et fait pas mal de recherches "gougueule" mais rien qui me dise où est mon erreur
Voilà ce que je faisais avant :

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
      <select name = 'client' id='client' onChange='go()'>
        <option >Choisir un client</option>
        <?php
            mysql_connect("localhost","root","password");
            mysql_select_db("carrosserie_ajax");
            $res = mysql_query("SELECT idCLIENT ,prenom,nom FROM CLIENT ORDER BY nom,prenom");
            while($C = mysql_fetch_assoc($res))
            {
                echo "<option value='".$C["idCLIENT"]."'>".$C["nom"].", ".$C["prenom"]."</option>";
            }
        ?>
      </select>
      <div id='vehicule'  style='display:inline'>
      <select name='vehicule'>
      <option >Choisir un v&eacute;hicule</option>
      </select>
Et je voudrais faire :
en PHP
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
      <select name = 'client' id='client' onChange='go()'>
        <option >Choisir un client</option>
        <?php
            $link = mysqli_connect('localhost','root','password');
            mysqli_select_db($link,'carrosserie_ajax');
            $res = mysqli_query($link,"call rech_clients(_idclient,_nom,_prenom)");
            while($C = mysql_fetch_object($res))
            {
                echo "<option value='".$C["_idclient"]."'>".$C["_nom"].", ".$C["_prenom"]."</option>";
            }
        ?>
      </select>
et au niveau MySQL :
Code SQL : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
DROP PROCEDURE `rech_clients`//
CREATE DEFINER=`root`@`localhost` PROCEDURE `rech_clients`(out _idclient int,
out _prenom varchar(20),out _nom varchar(45))
BEGIN
     declare _idclient int;
     declare _prenom varchar(20);
     declare _nom varchar(45);
  SELECT idCLIENT ,prenom,nom INTO _idclient, _prenom, _nom
  FROM CLIENT ORDER BY prenom, nom;
END

mais je ne reçois rien dans mon select

merci d'avance