列表内容模板(list.var) (*) 使用程序代码
if(strpos($r[smalltext],"n")>-1){echo"<fontstyle="display:none">nl2br($r[smalltext])</font>";display:none隐藏必须用,不然出错}else{echo"<fontstyle="display:none">$r[smalltext]</font>";display:none隐藏必须用,不然出错}$str=$r[smalltext];$listtemp='<p>'.$str.'</p>';
判断smalltext字段中是否含有换行符,含有去掉不含有直接输出。