Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
if(isset($_POST['addComment']))
{
$post_id = $_POST['post'];
$comment = $_POST['comment'];
$comment = str_replace(':)', '<img src="imgs/smile.gif" alt="pic" />', $comment);
$comment = addslashes(htmlspecialchars($comment));
$author = $user->data['username'];
$time = date("F j, Y, g:i a");
mysql_query("INSERT INTO comments(post_id, comment, author, added) VALUES('$post_id', '$comment', '$author', '$time')") or die (mysql_error());
header("Location: read_more.php");
}
unset($_POST['addComment']);
unset($post_id);
unset($comment);
if(isset($_POST['addComment']))
{
$post_id = $_POST['post'];
$comment = $_POST['comment'];
$comment = str_replace(':)', '<img src="imgs/smile.gif" alt="pic" />', $comment);
$comment = addslashes(htmlspecialchars($comment));
$author = $user->data['username'];
$time = date("F j, Y, g:i a");
mysql_query("INSERT INTO comments(post_id, comment, author, added) VALUES('$post_id', '$comment', '$author', '$time')") or die (mysql_error());
unset($_POST['addComment']);
unset($post_id);
unset($comment);
header("Location: read_more.php");
}