【发布时间】:2015-02-02 01:26:54
【问题描述】:
我有
<span id="first_name"></span>
从 mysql 我得到“first_name”值,我想把它写到#first_name。 JS做得很好
$('span').text(firstNameFromDb);
但我不能在 php 上做到这一点。有可能吗?我该怎么做?
【问题讨论】:
-
id="first_name">
-
我有“index.html”和 和“some.php”。如何从“some.php”更改?
-
-
@CapitanSlow 您必须将 index.html 更改为 index.php,然后将其放入。另一种选择是将您的 html 文件包含在您的 php 文件中,如下所示:
标签: php html mysql web request