Some functions of this program are as follows:
1: Complete search engine
2: Three sorting objects. (Joining time, download times, program name). And two sorting methods (reverse order, sequential order).
3: Administrators can modify it at any time.
4: Report link errors for administrators to correct at any time.
5: Paging function.
Create table:
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)
);
Some instructions:
author: program author
title: program name
url: program address
say: program introduction
ttime: joining time
click: download count
id: Program number. Automatically increase
type: program classification
size: program size
The program and administrator login interface
When logging in, session_power is greater than 1 (permission). And register it.
The source code of opendata.php is as follows:
$cn = mysql_connect("localhost","","");
if(!mysql_select_db("mydb",$ cn))
?>
The url linked to download.php is: download.php?ac