define("_needlogin", "0");
define("_access", "1");
include_once("include/db.config.php");
$id=$_SESSION['writeup_id'];
$sql="SELECT * from challenge where id='$id'";
$writeup_id=getOne($sql)['writeup_id'];
$sql="SELECT * from writeup where id=$writeup_id";
$r=getOne($sql);
$_SESSION['rr']=$r;
?>
if($_SESSION['rr'])
echo($_SESSION['rr']['title']);
else
echo "该题题解还未发布,请耐心等待";
?>
if($_SESSION['rr'])
{
echo "作者:";
echo($_SESSION['rr']['author']);
}
?>
if($_SESSION['rr'])
echo($_SESSION['rr']['content']);
?>
一键复制
编辑
Web IDE
原始数据
按行查看
历史