[php]<?php
include “logo.php”;
echo "The Maske Weblog
include “welcome.php”;
$query = “SELECT id,title,text,date,posted,submitted FROM weblog WHERE posted != ‘0’ ORDER BY date DESC, id DESC LIMIT 0,8”;
$exec = mysql_query($query);
while ($result = mysql_fetch_array($exec)) {
$id = $result[“id”];
$title = htmlspecialchars($result[“title”]);
$text = ubb_advanced(ubb_basic(nl2br(htmlspecialchars($result[“text”]))));
$time = get_date_short($result[“date”]);
$posted = $result[“posted”];
$submitted = $result[“submitted”];
$posted_name = get_name($posted);
if ($submitted > ‘0’) {
$submitted_name = get_name($submitted);
$submitted = " submitted by $submitted_name";
}
else {
$submitted = “”;
}
$reaction_exec = mysql_query(“SELECT weblog FROM weblog_reactions WHERE weblog=’$id’”);
$reaction_check = mysql_num_rows($reaction_exec);
if ($reaction_check == ‘0’) {
$reaction = "
:open: - :no reactions: - ";
}
elseif ($reaction_check == ‘1’) {
$reaction = "
:open: - :1 reaction: - ";
}
else {
$reaction = "
:open: - :$reaction_check reactions: - ";
}
$reaction = $reaction . “:add reaction:”;
echo "
$title |
Posted by: $posted_name</b$submitted on $date at $time
$text $reaction |
echo “
?>[/php]
That was my code, i was wondering, i know where every thing apears but i want the outcome to be that it says in my weblog:
Posted by ‘user’ on ‘day thehowmanieth of month’ at ‘24hour time’. I don’t exactly where to configure it on this one. Thank you.