attentio | et bien mes dates sont stockés dans une db
mais si je fais
Code :
- // fonction
- function mysql_mktime($timestamp){
- $hour = substr($timestamp, 8, 2);
- $minute = substr($timestamp, 10, 2);
- $second = substr($timestamp, 12, 2);
- $month = substr($timestamp, 4, 2);
- $day = substr($timestamp, 6, 2);
- $year = substr($timestamp, 0, 4);
- return mktime($hour, $minute, $second, $month, $day, $year);
- }
- //affichage des dates
- for($n=0; $n<mysql_num_rows($req_transactions); $n++){
- $resultats=mysql_fetch_array($req_transactions);
- $date = date("d/m/Y H:i:s" , mysql_mktime($resultats['date']));
- echo $date;
- }
|
il affiche 19/01/2038 04:14:07 a tous les enregistrements
merci de ton aide |