游客,如果您要查看本帖隐藏内容请回复
调用12个企业会员 按 注册时间排序{dede:sql sql='select * from dede_member where mtype="企业" order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调用12个个人会员 按 注册时间排序{dede:sql sql='select * from dede_member where mtype="个人" order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}详解使用dede的sql标签sql语句select * from dede_member where mtype="个人" order by mid limit 0,12mtype="个人" 判断是否为个人类型order by mid 按mid(注册的ID编号) 排列limit 0,12 从第0条数据开始读取 读取12条后返回相关调用调取所有会员中的12个{dede:sql sql='select * from dede_member order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调取所有会员中的12个 按最后登录时间排序{dede:sql sql='select * from dede_member order by logintime limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调取12个上传了头像的会员 按最后登录时间排序 并显示出他们的头像{dede:sql sql='select * from dede_member where length(face)>0 order by logintime limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'></a>{/dede:sql}dede首页推荐会员和会员积分排行调用代码调用说明:推荐会员(带用户头像) 调用说明:会员积分排行 [quote]{dede:sql sql="Select mid,userid,uname,scores From dede_member order by scores desc limit 0,10"} <dd><span class="name"><a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a> </span><span class="jifen">积分[field:scores/]</span></dd> {/dede:sql}这个相当有用啊,讲解很详细
游客,如果您要查看本帖隐藏内容请回复
调用12个企业会员 按 注册时间排序{dede:sql sql='select * from dede_member where mtype="企业" order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调用12个个人会员 按 注册时间排序{dede:sql sql='select * from dede_member where mtype="个人" order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}详解使用dede的sql标签sql语句select * from dede_member where mtype="个人" order by mid limit 0,12mtype="个人" 判断是否为个人类型order by mid 按mid(注册的ID编号) 排列limit 0,12 从第0条数据开始读取 读取12条后返回相关调用调取所有会员中的12个{dede:sql sql='select * from dede_member order by mid limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调取所有会员中的12个 按最后登录时间排序{dede:sql sql='select * from dede_member order by logintime limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'>[field:uname/]</a>{/dede:sql}调取12个上传了头像的会员 按最后登录时间排序 并显示出他们的头像{dede:sql sql='select * from dede_member where length(face)>0 order by logintime limit 0,12'}<a href=../member/index.php?uid=[field:userid/] target='_blank'></a>{/dede:sql}dede首页推荐会员和会员积分排行调用代码调用说明:推荐会员(带用户头像) 调用说明:会员积分排行 [quote]{dede:sql sql="Select mid,userid,uname,scores From dede_member order by scores desc limit 0,10"} <dd><span class="name"><a href='[field:global name='cfg_cmspath'/]/member/?[field:userid/]/'>[field:uname/]</a> </span><span class="jifen">积分[field:scores/]</span></dd> {/dede:sql}学习了,感谢分享要回复才可以看到的啊。看看是不是我想要的哦 |