本帖最后由 8434461 于 2009-8-20 09:51 编辑  
 
有查询结果的 
        $rdlist = array(); 
        $query = $_SGLOBAL['db']->query("SELECT b.uid,b.subject,b.blogid,b.username,b.dateline,bf.message FROM  ".tname('blog')." b, ".tname('blogrecommend')." bc, ".tname('home_blogfield')." bf WHERE bc.recommendvalue=b.blogid and bc.recommendvalue=bf.blogid ORDER BY bc.recommendid DESC LIMIT 0,4"); 
        while ($value = $_SGLOBAL['db']->fetch_array($query)) { 
                realname_set($value['uid'], $value['username']); 
                $rdlist[] = $value; 
        }  
就这句sql   
data_set()函数 死活 保存不到 data 的 index_cache 数据里 
查询 2个 表的数据 可以用data_set()函数保存到数据库但是这个查询3个表的数据的sql就不行了 |