DESTOON列表页获取文章内容的方法
2016-10-27 21:5922910
核心提示:include/global.func.php 加入以下函数function content($itemid) {global $db;$ro...
    
	
		
			| 
				 
					include/global.func.php 加入以下函数
				 
				
					 
				 
				
						 
							function content($itemid) { 
						
						
							        global $db; 
						
						
							        $row = $db->get_one("SELECt * FROM {$db->pre}sell_data_5 WHERe itemid=$itemid"); 
						
						
							        return $row['content']; 
						
						
							}
						
					
在循环标签中使用 
 
{content($t[itemid])} 
					
				
			 | 
		
	
 
 
 
    免责声明:凡注明来源本网的所有作品,均为本网合法拥有版权或有权使用的作品,欢迎转载,注明出处。非本网作品均来自互联网,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。
下一篇