Bonjour problème tout bête mais je n'arrive pas a mettre la date dans ma case :/
Voila un début de mon code
Le problème c'est que ma date enregistrer est = 1500119350
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42 <th>ID</th> <th>Numéro de l'outil</th> <th>Numéro de suivi</th> <th>Armoire</th> <th>Machine</th> <th>Affaire</th> <th>Client</th> <th>Etat</th> <th>Prix</th> <th>Nombre de réaffutage</th> <th>Compteur</th> <th>Date</th> <th>Modification</th> </tr> </thead> <tbody id="matable"> <?php $requete = $bdd->prepare('SELECT * FROM outils ORDER BY nom_outil DESC LIMIT '.$start.', '.$epp.''); $requete->execute(); while($resultats = $requete->fetch(PDO::FETCH_OBJ)) { echo '<tr>'; echo '<td>'.$resultats->id.'</td>'; echo '<td>'.$resultats->nom_outil.'</td>'; echo '<td>'.$resultats->outil_num.'</td>'; echo '<td>'.$resultats->armoire.'</td>'; echo '<td>'.$resultats->machine.'</td>'; echo '<td>'.$resultats->affaire.'</td>'; echo '<td>'.$resultats->client.'</td>'; echo '<td>'.$resultats->etats.'</td>'; echo '<td>'.$resultats->prix.'</td>'; echo '<td>'.$resultats->nombre_de_reaf.'</td>'; echo '<td>'.$resultats->compteur.'</td>'; echo '<td>'.$resultats->date. '</td>'; echo '<td>'; ?>
Donc j'obtiens ca
J'ai enregistrer ma date de cette facon :Pouvez vous m'aidez ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7<section class="col col-2"> <label class="label">Date</label> <label class="input"> <input type="text" placeholder="<?php echo date('d/m/Y à H:i', time());?>" disabled> </label> </section>
Cordialement
Partager