while($row = mysql\_fetch\_array($result)){}
循环
具体代码:
while($row = mysql_fetch_array($result)){ $id=$row['id']; $content=$row['content']; echo "<script>$('.message').emotionsToHtml();</script>"; //把.class为message里的变量转换为html代码 echo "<div class='message'>$content</div>"; }
白猪掌柜的
江户川乱折腾