Fix date and post link preparation
This commit is contained in:
parent
0fde535c86
commit
fa7c6d1533
6
user.php
6
user.php
|
@ -86,13 +86,15 @@ if(isset($_SESSION["uid"])){
|
||||||
|
|
||||||
// Time
|
// Time
|
||||||
$time->settimestamp($current["q_date"]);
|
$time->settimestamp($current["q_date"]);
|
||||||
echo("<p class='question-date'>" . $time->format("y-m-d h:i:s") . "</p>");
|
echo('<a href="?p=' . $current["id"] . '">');
|
||||||
|
echo("<p class='question-date'>" . $time->format("Y-m-d h:i:s") . "</p>");
|
||||||
|
echo("</a>");
|
||||||
|
|
||||||
if($current["answer"]){
|
if($current["answer"]){
|
||||||
echo("<div class='answer'>");
|
echo("<div class='answer'>");
|
||||||
echo("<p class='answer-text'>" . $current["answer"] . "</p>");
|
echo("<p class='answer-text'>" . $current["answer"] . "</p>");
|
||||||
$time->settimestamp($current["a_date"]);
|
$time->settimestamp($current["a_date"]);
|
||||||
echo("<p class='answer-date'>" . $time->format("y-m-d h:i:s") . "</p>");
|
echo("<p class='answer-date'>" . $time->format("Y-m-d h:i:s") . "</p>");
|
||||||
echo("</div>");
|
echo("</div>");
|
||||||
}
|
}
|
||||||
echo("\n\n");
|
echo("\n\n");
|
||||||
|
|
Loading…
Reference in New Issue