-2
我知道有很多插件顯示一個帶有靜態頭的表。我的問題是,我有一個for循環返回此表下的值:創建一個靜態表頭
foreach($ftsProducts as $x) {
$content .= "<tr class='highlight'>
<td class='reportCell' title='" . $x['BaseCode'] . "'>" . $x['Description'] . "</td>
<td class='reportCell'>" . $x['Fit'] . "</td>";
foreach($sizes as $y) {
$content .= "<td class='reportCell'>" . $x[$y] . "</td>";
}
$content .= "<td style='font-weight: bold; text-align: center;'>" . $x['Total'] . "</td>
</tr>";
}
$content .= "</table>";
任何人都有任何建議或意見。
非常感謝
究竟是什麼問題?如果問題出現循環,請將其刪除。 – GolezTrol
我不太確定我明白你的問題是什麼?你能詳細說明你認爲應該發生的事情嗎? – ChrisW
只需在輸出底層行的循環之外輸出標題...不行? – SW4