我的代码来自这些页面的问题

I have a problem with PHP I do not know what the solution is Google discovers pages I do not know how these pages work I have a problem with my code from where these pages are

this original page https://almagnon.com/post-138758.html

this page I do not know its source https://almagnon.com/post-138758.htmlhttps:/post-17788.html

this post page

<?php
$sql = mysql_query("select * from `post` where `id`='$post'");
if (mysql_num_rows($sql) > 0) {
    $row = mysql_fetch_array($sql);
    $views = $row['views']+1;
    mysql_query("update `post` set `views`='$views' where `id`='$post'");
}else{
    header ("location: ./");
}
$sql2 = mysql_query("select * from `content` where `post_id`='$row[id]'");
                                if (mysql_num_rows($sql2) > 0) {
                                    $row2 = mysql_fetch_array($sql2);
                                    $description = $row2['post'];
                                    $mpost = substr($row2['post'], 0, 730);}

?>

<?php
                                $sql2 = mysql_query("select * from `content` where `post_id`='$row[id]'");
                                if (mysql_num_rows($sql2) > 0) {
                                    $row2 = mysql_fetch_array($sql2);
                                    echo $row2['post'];
                                }
                                $tags = explode(" ", $row['title']);
                                $count = count($tags);
                                echo "<span style='float:right; padding:5px;color: black'>التاجات: </span> ";                                    for ($i=0; $i<$count; $i++) {
                                    $tag = $tags[$i];
                                    $tag2 = urlencode($tag);
                                    if ($i<($count-1)) {
                                        $comma = "";
                                    }else{
                                        $comma = "";
                                    }
                                    echo "<a style='float:right; padding:5px;color: red' title='$tag' href='/tag-$tag2.html'>$tag</a>$comma ";
                                }
                            ?>

this code

http://almagnon.com/post.php.zip