一個(gè)程序下載的管理程序(一)
更新時(shí)間:2006年10月09日 00:00:00 作者:
該程序的一些功能有幾點(diǎn):
1:完整的搜索引擎
2:三種排序?qū)ο?(加入時(shí)間,下載次數(shù),程序名字).及兩種排序方法(倒序,順序).
3:管理員隨時(shí)修改.
4:報(bào)告鏈接錯(cuò)誤.供管理員隨時(shí)修正.
5:分頁功能.
創(chuàng)建表:
CREATE TABLE download (
author varchar(15),
title varchar(30),
url varchar(200),
say text,
ttime datetime,
click bigint(20),
id bigint(20) NOT NULL auto_increment,
type tinyint(3) unsigned DEFAULT '1' NOT NULL,
size varchar(10),
PRIMARY KEY (id)
);
一些說明:
author:程序作者
title:程序名字
url:程序地址
say:程序簡介
ttime:加入時(shí)間
click:下載次數(shù)
id:程序編號.自動(dòng)增加
type:程序分類
size:程序大小
該程序和管理員登錄接口
登錄時(shí)令session_power為大于1(權(quán)限).并注冊它.
opendata.php源代碼如下:
<?
$cn = mysql_connect("localhost","","");
if(!mysql_select_db("mydb",$cn))
?>
鏈接到download.php的url為:download.php?ac
1:完整的搜索引擎
2:三種排序?qū)ο?(加入時(shí)間,下載次數(shù),程序名字).及兩種排序方法(倒序,順序).
3:管理員隨時(shí)修改.
4:報(bào)告鏈接錯(cuò)誤.供管理員隨時(shí)修正.
5:分頁功能.
創(chuàng)建表:
CREATE TABLE download (
author varchar(15),
title varchar(30),
url varchar(200),
say text,
ttime datetime,
click bigint(20),
id bigint(20) NOT NULL auto_increment,
type tinyint(3) unsigned DEFAULT '1' NOT NULL,
size varchar(10),
PRIMARY KEY (id)
);
一些說明:
author:程序作者
title:程序名字
url:程序地址
say:程序簡介
ttime:加入時(shí)間
click:下載次數(shù)
id:程序編號.自動(dòng)增加
type:程序分類
size:程序大小
該程序和管理員登錄接口
登錄時(shí)令session_power為大于1(權(quán)限).并注冊它.
opendata.php源代碼如下:
<?
$cn = mysql_connect("localhost","","");
if(!mysql_select_db("mydb",$cn))
?>
鏈接到download.php的url為:download.php?ac
相關(guān)文章
php面向?qū)ο笕ヂ?(十四) php5接口技術(shù)
PHP 與大多數(shù)面向?qū)ο缶幊陶Z言一樣,不支持多重繼承.也就是說每個(gè)類只能繼承一個(gè)父類。2009-09-09

