1
在我的代码中,它应该打印“Testing ... Test Link”的主体,尽管它没有。 你可以在这里查看错误:http://pirates-online-rewritten.com/blog.php?ID=1 这是我的代码:不打印博客文章的正文?
<?php
include "header.php";
include "connect.php";
$ID = mysql_real_escape_string(strip_tags(stripslashes($_GET['ID'])));
$getPost = mysql_query("SELECT * FROM Blogs WHERE ID='$ID'");
$gP = mysql_fetch_object($getPost);
echo $gp->Body;
include "footer.php";
?>
谢谢,它的工作,我的坏大声笑 – Sam