【发布时间】:2018-04-05 05:24:27
【问题描述】:
我的查询结果页面有两个问题.... 问题编号 1 表格的边框。
我有一串和这个相等的字符串
$ content. = "<tr> <td> Total <td>". $ line ["total"]. "";
我只想为变量 php (". $ riga [" total"].") 设置边框。
我试过了
PHP:$ content. = "<tr> <td> Total <td> <table border =" 1 ">". $ line ["total_arrest"]. "";
,但显然出错了。
我该如何解决?
第 2 期
使用此代码以 word 导出结果搜索
if (isset ($ _ POST ['submit'])) {
header ("Content-Type: application / vnd.msword");
header ("Expires: 0"); // no-cache
header ("Cache-Control: must-revalidate, post-check = 0, pre-check = 0"); // no-cache
header ("content-disposition: attachment; filename = morning _" date ("d_m_Y"). "doc");
}
我正确导出它,但我想用打印布局导出它,因为它是在网页布局中完成的
【问题讨论】:
标签: php html-table ms-word border