People's Congress copy data Processing Procedure _ Supplementary Article _php Foundation

Source: Internet
Author: User
Description
1, the People's Congress copy of the processing is my own use of a set of procedures, because to see the forum on the full text search discussion so regardless of the level of programming rookie, also published in the public.
2. The National People's Congress should be able to obtain copies of the full text CD-ROM information in the University library.
##### #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= ' italics ' size=1> $index _describe");
Inquiry 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> Critical 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: #fefefe; " > ";
echo "<th colspan=2 bgcolor=726cc5>";
echo "<font color=white face=arial,helvetica size=2><center>";
echo $msg. " <BR> ";
echo "<tr><td align=center> please write to xueroom@263.net, contact the administrator. ";
echo "&LT;BR&GT;&LT;TR&GT;&LT;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 (ten) is not NULL,
origin_periodical varchar () binary not NULL,
date_pub datetime DEFAULT ' 0000-00-00 00:00:00 ' not NULL,
Artical_author varchar (m) binary not NULL,
Artical_title varchar (MB) binary not NULL,
Artical_data Longblob not NULL,
Artical_type varchar (6),
Artical__size varchar (10),
date_reprinted datetime DEFAULT ' 0000-00-00 00:00:00 ' not NULL,
Read_count Int (a) 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.