【问题标题】:Save mysql query results to HTML file in PHP将mysql查询结果保存到PHP中的HTML文件
【发布时间】:2015-07-04 08:49:46
【问题描述】:

我想将 20-30 个 MySQL 查询结果分别保存到 .html 文件中。

$query = mysqli_query($link, "SELECT....")
while ($t = mysqli_fetch_assocc($query)) {
    // The other queries and html content** <- I want to save these.
}

所以我想保存结果,而不是源代码,我认为它应该执行然后一个脚本将它保存到 html,因为将来我想打开它。

【问题讨论】:

    标签: php html mysql mysqli save


    【解决方案1】:

    您可以使用file_put_contents 要么 fwrite

    【讨论】:

      猜你喜欢
      • 2014-02-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多