原帖由 jicki 于 2006-2-12 15:41 发表 家族领地 是怎么来的~???从那里来呀~?
使用道具 举报
图片一
图片二
原帖由 ytc 于 2006-2-7 22:13 发表 //家族Begin //$query=$db->query("select * from cdb_members where username='$post[author]'"); //$fmu=@mysql_fetch_array($query); $query_mp=$db->query("select * from cdb_fam where fmname='$post[fam]'"); $fcu=@mysql_fetch_array($query_mp); if(!$post['fam'] || $post['fam']=="0") { $post[fam]="沒有家族"; //沒有加入家族要顯示的資訊 } else{ if($post[author]==$fcu['username']) { $post['fam']=$post['fam']."-".$fcu['firstname']; //家族長要顯示的資訊 } elseif($post[author]==$fcu['first']||$post[author]==$fcu['seven']){ $post['fam']=$post['fam']."-".$fcu['firstname2']; //家族長老要顯示的資訊 } elseif($post[author]==$fcu['second']||$post[author]==$fcu['third']){ $post['fam']=$post['fam']."-".$fcu['secondname']; //家族長老要顯示的資訊 } elseif($post[author]==$fcu['four']||$post[author]==$fcu['five']||$post[author]==$fcu['six']) { $post['fam']=$post['fam']."-".$fcu['thirdname']; //家族唐主要顯示的資訊 } else { $post['fam']=$post['fam']."-".$fcu['mbname']; //家族成員要顯示的資訊 } } //家族End
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2025-9-8 17:51 , Processed in 0.088542 second(s), 15 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.