problem with my code from where these pages are












0















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









share|improve this question

























  • Welcome to Stack Overflow. I don't understand your question. What do you need help with?

    – elbrant
    Jan 3 at 2:14
















0















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









share|improve this question

























  • Welcome to Stack Overflow. I don't understand your question. What do you need help with?

    – elbrant
    Jan 3 at 2:14














0












0








0


1






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









share|improve this question
















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






php






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 2 at 23:44







Ahmed Hosny

















asked Jan 2 at 23:16









Ahmed HosnyAhmed Hosny

42




42













  • Welcome to Stack Overflow. I don't understand your question. What do you need help with?

    – elbrant
    Jan 3 at 2:14



















  • Welcome to Stack Overflow. I don't understand your question. What do you need help with?

    – elbrant
    Jan 3 at 2:14

















Welcome to Stack Overflow. I don't understand your question. What do you need help with?

– elbrant
Jan 3 at 2:14





Welcome to Stack Overflow. I don't understand your question. What do you need help with?

– elbrant
Jan 3 at 2:14












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014421%2fproblem-with-my-code-from-where-these-pages-are%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54014421%2fproblem-with-my-code-from-where-these-pages-are%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Mossoró

Error while reading .h5 file using the rhdf5 package in R

Pushsharp Apns notification error: 'InvalidToken'