我有一个关于在PHP变量中集成PHP代码的问题。 我做报告PHP为PDF格式,我使用PHP为PDFPHP内部的PHP代码变量
我想从ORACLE数据库查询表并打印到PDF,现在我有转义字符和东西
我的代码问题是这样的,
$compProfileSql = "SELECT * FROM DRAWING WHERE PROJECT_NAME = :PROJNAME"
$compProfileParse = oci_parse($conn, $compProfileSql);
oci_bind_by_name($compProfileParse, ":PROJNAME", $_SESSION['cd-dropdown']);
oci_execute($compProfileParse);
$content = "
<table class=\"table table-bordered\">
<thead>
<tr>
<th>PROJECT NAME</th>
<th>COMPONENT</th>
<th>DRAWING</th>
</tr>
</thead>
<tbody>
while (($row = oci_fetch_array($compProfileParse, OCI_BOTH)) != false){
<tr>
<td>$row[COMP_TYPE]</td>
<td>$row[JML_DWG]</td>
<td>$row[JML_MARKING]</td>
</tr>
}
</tbody>
</table>
";
我看不出在生成的PDF中工作的表。我是否犯了转义字符? 感谢您的帮助