【发布时间】:2016-12-30 20:47:18
【问题描述】:
我在我的 html 表中调用 php 函数时遇到了困难。
<table>
<thead class="table">
<tr><th>Letter</th><th>Sender</th></tr>
</thead>
<tbody>
<?php require_once 'assets/userFunctions.php';
foreach ($myCvs as $cv){
echo "<tr>
<td>{$cv['cv']}</td>
<td>getUsernameById({$cv['senderid']})</td>
</tr>";
}
?>
</tbody>
</table>
在表格中我只看到getUsernameById(2),例如...
【问题讨论】: