bonsoir
j'ai un problème
j'ai une page php pour afficher une recherche dans une table mysql, sur pc tout va bien mais sur portable j'ai un tableau vide (entête sans ligne)
voici mon code:
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
17
18
19
20
21
22
23
24
25 <?php $param=$_GET['id']; require('conn.php'); /* Contient la connexion à la $bdd */ $ps=$conn->prepare("SELECT * FROM contact WHERE ID=?"); $params=array ($param); $ps->execute($params);?> <table class="table table-bordered table-striped table-sm table-hover table-responsive"> <thead> <tr> <th>id</th> <th">contact</th> </tr> </thead> <tbody> <?php while($fi = $pas->fetch()) {;?> <tr> <td><?= $fi['ID'] ?></td> <td><?= $fi['CONTACT'] ?></td> <?php } ?> </tbody> </table>
Partager