最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
查询数据生成XML并显示的例子(基于PHP MySQL)
时间:2022-07-02 10:12:25 编辑:袖梨 来源:一聚教程网
//TABLE
create table tableurl(
id int(5),
sort int(2),
click int(6),
getday date,
name char(30),
link char(40),
brief char(50),
PRIMARY KEY (id)
)
//XML FILE
------------------------------
require("db.inc.php");
if(empty($order))
{$order='hot';
}
switch($order)
{
case 'hot':
$querystring="select * from tableurl order by click desc LIMIT 20";
break;
case 'new':
$querystring="select * from tableurl order by getday desc LIMIT 20";
}
$result=mysql_query($querystring,$db);
echo "n";
echo "";
相关文章
- 《1号会员店》关闭自动续费方法 01-29
- 《排球少年:新的征程》社团每日福利领取方法 01-29
- 《椿之歌》新手风属性队伍推荐 01-29
- 《最终幻想14:水晶世界》小小阿托莫斯宠物获得方法 01-29
- 《燕云十六声》醉拳客打法攻略 01-29
- 《异人之下》全货币获取方法汇总 01-29