使用所见即所得的 CKEditor,我将以下内容存储到 MySql 中:
<p>
Here is the information that we would like to have show</p>
<p>
</p>
<p>
Project:<?php echo $project; ?></p>
我需要将此内容回显为 $content 并让 $project 变量从 _POST 数据中填充。
但是,当我这样做时,结果如下所示:
Here is the information that we would like to have show
Project:
在页面的源代码中,您可以看到 echo 语句,但尽管知道 $project 变量已设置并具有值,但什么也没有出现。
有人提到了 str_replace 语句并将变量写为 %project% 但它如何从 %project% 变为<?php echo $project; ?>
谢谢阅读。
汤姆