", $text); //Insert row mysqli_query($con, "INSERT INTO post_comment (post, text, username, lang) VALUES ($post, '$text', '$user', '$lang');"); version(); //Prepare the page to update the comment section //WARNING: If changes are done here, do the same in post.php $q_comment = mysqli_query($con, "SELECT id, post, DATE_FORMAT(dtime, '%Y-%m-%dT%T') AS isodate, dtime, user, username, lang, text FROM post_comment WHERE post = $post AND approved = 1 ORDER BY dtime;"); error_log("SELECT id, post, DATE_FORMAT(dtime, '%Y-%m-%dT%T') AS isodate, dtime, user, username, lang, text FROM post_comment WHERE post = $post AND approved = 1 ORDER BY TIME;"); while ($r_comment = mysqli_fetch_array($q_comment)){ echo "
$r_comment[text]
"; echo "\n"; echo "