Bon le titre n'a pas l'air d'etre très compréhensible...donc j'explique:
j'ai un formulaire html, lorsque je valide, une requete sql s'execute, et le resultat s'affiche en dessous du formulaire sous forme de tableau. Dans le tableau, il y a un lien et je voudrais que quand je clique sur le lien, cela s'affiche a coté du tableau
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
26 if ($this->offres != null) { <table id="resultat" class="sortable"> <thead> <tr> <th> Date de parution </th> <th> Code Postal </th> <th> Intitulé de l'offre </th> </tr> </thead> <?php foreach ($this->offres as $offre): ?> <tbody> <tr> <td> <?php echo date( 'd-m-Y' , strtotime($offre->offre_date_creation)); ?></td> <td> <?php echo $offre->offre_code_postal; ?></td> <td> <a href="<?php echo $this->baseUrl;?>/recherche/afficher?id=<?php echo $offre->offre_id;?>" ><?php echo $offre->offre_intitule; ?></a></td> </tr> <?php endforeach; ?> </tbody> </table><?php } else { echo "<h1> Aucun résultat </h1>"; }
Partager