日期:2014-05-17 浏览次数:20547 次
/..数据库连接代码,省略 <table> <?php $result = mysql_query("SELECT news_title,in_time FROM news");//这里确认是有值的 while ($row=mysql_fetch_row($result)) { ?> <tr> <td> <img src="../images/icon.gif" width="7" height="7" /> <a href="../news/?news_title=$row('news_title')" target="_blank"> //这里的news_title取不到值 <?php echo "$row('news_title')"; ?>//这里报错,报错内容:Fatal error: Function name must be a string in </a> <span class="gray"> <?php echo "$row('in_time')"; ?></span> </td> </tr> <?php } mysql_free_result($result); ?> <table>