最新下载
热门教程
- 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 "";
相关文章
- 超灵秘法社debug模式开启教程 debug模式怎么开 11-21
- 流放之路S24自伤BD不用尘埃落定珠宝启动方法详解 11-21
- 封神演义爱藏版攻略大全 隐藏技能/洞府挑战/隐藏道具/属性效果详解 11-21
- 三国杀武将台词合集2025 三国杀(最惊艳的)台词一览表最新 11-21
- dnf领悟巅峰黄金神树光环外观及属性一览 11-21
- 七日世界呢喃狂犬BOSS打法攻略 11-21