Processing Procedures for NPC deputies to the People's Congress (supplement)

Source: Internet
Author: User
Processing Procedures for copying data to the National People's Congress _ additional description:
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 ," $ Index_titleRn ");

Fputs ($ fp_ I, "$ index_titlern ");
// $ Dte_created = date ('Y-m-d H: I: s ');
Fputs ($ fp_ I, "$ index_describe ");
// Query date: $ dte_createdrn ");
// Fputs ($ fp_ I ,"






Database error









Severe error
Rn ");Return $ fp_ I;}Function mysql_error_exit ($ msg ){$ Errno = mysql_errno ();$ Error = mysql_error ();Echo'';Echo $ msg;Echo"Error: ($ errno) $ error";Echo'';Exit ();}Function xueroom_error_exit ($ msg, $ page ){Echo"";Echo"

";Echo"
";
Echo" ";
Echo $ msg ."
";
Echo"
Please send a xueroom@263.net and contact the administrator. ";
Echo"
Return ";
Echo'';
Exit-1;
}
Function xueroom_message ($ msg ){
Echo'

';Echo' ';Echo'
';
Echo "$ msg ";
Echo'
';
}

?>

#################### 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)
);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.