<th>Marque</th> <th>Modèle</th> <th>Couleur</th> <th>Immatriculation</th> <th>Propriétaire</th> <th></th> </tr> </thead> <tbody> <tr> <?php include_once 'class/Vehicule.class.php'; $requete = $bdd->query('SELECT id FROM vehicule'); while ($donnees = $requete->fetch()) { $vehicule = new Vehicule($donnees['id']); $nb_result = $vehicule->search($pattern, $nb_result); } ?> </tbody> </table> <?php if ($nb_result == 0) { echo '<h2>Aucun resultat</h2>'; } else { echo '<h3>' . $nb_result . ' résultat(s)</h3>'; } } ?> <!-- jQuery -->