$maxGond, 'afficheGond[i]' => $afficheGond[$i] ], 'gondole_tournantes.update');} $gond = filter_var($afficheGond[$i], FILTER_VALIDATE_INT); $max = filter_var($maxGond, FILTER_VALIDATE_INT); if ($gond !== false && $max !== false ) { $afficheCompteur = $gond + 1; if ($afficheCompteur > $max) $afficheCompteur = 1; // --------------------------------------------------- // Requete // --------------------------------------------------- $reqUpdate="UPDATE produits SET afficheGond=" .$afficheCompteur. " WHERE idPrd=" .$tableIdPrd[$i]. ";"; $resConnGT=''; $resConnGT=$idPdo->query($reqUpdate); if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug(2, ['reqUpdate GT' => $reqUpdate ], 'gondole_tournantes.update');} } ?>