Note:
1. The process of copying data by the National People's Congress is a set of programs used by myself. Because I saw a discussion on full-text retrieval on the Forum, I did not care about the cainiao-level gap in programming and published it to the public.
2. The NPC may copy full-text CDs in university libraries.
###### Config. php3
<?
$ Hostname = "localhost ";
$ Dbusername = "";
$ Dbname = '';
$ Dbpassword = "";
Function indexfile ($ index_file, $ index_title, $ index_describe = ""){
Global $ added;
If ($ index_file = ""){
$ Index_file = "\ index \ temp.html ";
}
Elseif (file_exists ($ index_file )){
$ Added = 1;
Copy ($ index_file, $ index_file. ". bak ");
}
$ Fp_ I = fopen ($ index_file, 'W + ');
Fputs ($ fp_ I, "
Fputs ($ fp_ I, "// $ Dte_created = date ('Y-m-d H: I: s ');
Fputs ($ fp_ I, "<font color = 'maroon' face = 'body' size = 1> $ index_describe ");
// Query Date: $ dte_created </font> // Fputs ($ fp_ I, "<table> rn ");
Return $ fp_ I;
}
Function mysql_error_exit ($ msg ){
$ Errno = mysql_errno ();
$ Error = mysql_error ();
Echo 'Echo $ msg;
Echo "<br> error: ($ errno) $ error <br> ";
Echo '</body> Exit ();
}
Function xueroom_error_exit ($ msg, $ page ){
Echo "<HTML> <HEAD> <TITLE> severe error </TITLE> </HEAD> ";
Echo "<BODY> <table align = center cellpadding = 3 cellspacing = 0 width = 420 style =" border-style: outset; border-bottom-width: thin; border-left-width: thin; border-right-width: thin; border-top-width: thin; border-color: # fefefefe; "> ";
Echo "<TH colspan = 2 bgcolor = regular cc5> ";
Echo "<font color = white face = Arial, Helvetica size = 2> <CENTER> ";
Echo $ msg. "<BR> ";
Echo "<TR> <TD align = center> send a message to the xueroom@263.net and contact the administrator. ";
Echo "<BR> <TR> <TD align = center> <a href =". $ page. "> return </A> ";
Echo '</body> Exit-1;
}
Function xueroom_message ($ msg ){
Echo '<table> ';
Echo '<tr> <td> ';
Echo "$ msg ";
Echo '</td> </tr> ';
Echo '</table> ';
}
?>
#################### Database structure:
Create table artical (
Artical_id int (6) not null auto_increment,
Resource_id varchar (10) not null,
Origin_periodical varchar (60) binary not null,
Date_pub datetime DEFAULT '2017-00-00 00:00:00 'not null,
Artical_author varchar (50) binary not null,
Artical_title varchar (100) binary not null,
Artical_data longblob not null,
Artical_type varchar (6 ),
Artical _ size varchar (10 ),
Date_reprinted datetime DEFAULT '2017-00-00 00:00:00 'not null,
Read_count int (10) DEFAULT '0' not null,
Catalog tinyint (4) unsigned DEFAULT '0' not null,
Primary key (artical_id ),
KEY artical_title (artical_title ),
KEY artical_author (artical_author ),
KEY origin_periodical (origin_periodical ),
KEY catalog (catalog ),
KEY resource_id (resource_id)
);