Here is my function :
function check1NumSeries($no_serie){
$reponse = $bdd->query('SELECT * FROM produit');
$check = "false";
while(($produit = $reponse->fetch())AND($check == "false")){
if ($produit[1] == $no_serie){
$check = "true";
$id_error = $produit[1];
}
} return array($check,$id_error);
};
It says when i do the return array($check,$id_error), that i have an "Notice: Undefined variable: id_error in C:\wamp\www\fonction.php on line 90"
line 90 = the return array();
I don't get it ... what is the problem ?
And my code below is executed correctly, it doens't block but i can see a big orange warning box for this error :/