-3
这是我的代码如下。解析错误:语法错误,意外T_CONSTANT_ENCAPSED_STRING第109行mainPage.php
<h2 align=center><strong>Fan Pages</strong></h2>
<?php
error_reporting (E_ALL^E_NOTICE);
$query = "SELECT pageName FROM pages";
//loop through the results and display them
while ($row = $results->fetch_assoc())
{
'<a href = "viewFanPage.php?id=<?php echo '.$row['page_ID']'; ?>"><?php echo '.$row['pageName']'; ?></a>';
}
>
我想要的名字字段以呼应的链接,但我不断收到此错误:? 解析错误:语法错误,意想不到的T_CONSTANT_ENCAPSED_STRING在\ mainPage.php上线109
我已经尝试了一切,但仍然没有进展,将不胜感激任何帮助。
谢谢。
在while循环,你没有离开PHP的模式,但它看起来像你想? – Musa 2014-10-27 02:59:06
''。$ row ['page_ID']';'< - 你没有正确拼接 – 2014-10-27 03:00:10