我有一个php项目,我正试图将它从fedora移动到windows。我移动了文件,可以访问它们也可以访问数据库但是我得到了一个奇怪的错误
SCREAM: Error suppression ignored for
( ! ) Parse error: syntax error, unexpected end of file in C:'wamp'www'portfolio'templates'sell_form.php on line 21
Call Stack
# Time Memory Function Location
1 0.0029 259504 {main}( ) ..'sell.php:0
2 0.1515 304656 render( ) ..'sell.php:67
这个文件
<table class="table table-hover center-table table-bordered">
<tr>
<th>Symbol</th>
<th>Name</th>
<th>Shares</th>
<th>Price</th>
<th>Total</th>
</tr>
<?php foreach ($shares as $row): ?>
<tr>
<td><?= $row["symbol"]?></td>
<td><?= $row["name"]?></td>
<td><?= $row["shares"]?></td>
<td>$<?= number_format($row["price"],4)?></td>
<td>$<?= number_format($row["total"],4)?></td>
</tr>
<? endforeach ?>
<tr>
<td>CASH</td>
<td></td>
<td></td>
<td></td>
<td>$<?= number_format($cash[0]["cash"], 4)?></td>
</tr>
</table>
<?php endforeach; ?>
忘记了逗号和PHP标签,除非你打开了短标签,否则它不起作用
您的结束语句for循环没有正确设置
<? endforeach; ?>