Commit 7279f50ba8755fd145ad0025a081c38f2bcff7fb
Merge branch 'master' of ssh://cie/crep
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
news.php
@@ -14,7 +14,7 @@ if(!mysql_select_db('crep', $link)){ | @@ -14,7 +14,7 @@ if(!mysql_select_db('crep', $link)){ | ||
14 | exit; | 14 | exit; |
15 | } | 15 | } |
16 | 16 | ||
17 | -$requete = "select news.pk as pk, title, content, users.realname as userName from news, users where news.fk_author=users.pk;"; | 17 | +$requete = "select news.pk as pk, created, title, content, users.realname as userName from news, users where news.fk_author=users.pk;"; |
18 | $resultat = mysql_query($requete); | 18 | $resultat = mysql_query($requete); |
19 | 19 | ||
20 | //Pour debugger | 20 | //Pour debugger |
@@ -36,7 +36,7 @@ while ($row = mysql_fetch_assoc($resultat)) { | @@ -36,7 +36,7 @@ while ($row = mysql_fetch_assoc($resultat)) { | ||
36 | echo '<p>'.$row['content'].'</p>'; | 36 | echo '<p>'.$row['content'].'</p>'; |
37 | echo '</div>'; | 37 | echo '</div>'; |
38 | echo '<div class="panel-footer">'; | 38 | echo '<div class="panel-footer">'; |
39 | - echo '<p>'.$row['userName'].'</p>'; | 39 | + echo '<p>'.$row['userName'].', le '.$row['created'].'</p>'; |
40 | echo '</div></div>'; | 40 | echo '</div></div>'; |
41 | } | 41 | } |
42 | 42 |