从mysql中取一个有内容的字段打印出来,却报错了
打算从MYsql里面取一个字段出来试试nl2br 函数的效果,可是报错了。
写法(目前,数据库中仅一条记录):
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->$result = mysql_query("SELECT * FROM Product limit 40"); while($row = mysql_fetch_array($result)) { echo nl2br($row['re_mark']); //就是这行报错了 }
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->$result = mysql_query("SELECT * FROM Product limit 40"); while($row = mysql_fetch_array($result)) { echo "<img src="%24row%5B'pic'%5D" alt=" 从mysql中取一个有内容的字段打印出来,却报错了解决办法 " >";//这样写也报错 }