Library Management System Requirements Analysis Library Management Program (2)
WBOY
Release: 2016-07-29 08:33:30
Original
944 people have browsed it
Book catalog input part:
if(!$UploadAction): ?>
//This program is designed for inputting book title, author and publisher information. //Editor: Kong Xiuxiang. Date: 2001/3/24 /* session_start(); if (!isset($auth_passed)) { echo "This function can only be used by authorized users."; return -1; } if(isset ($u_name)) { session_name($u_name); //echo "
".session_name().": This program will serve you wholeheartedly.
n"; //echo ""; } */ ?>
图书目录输入
TABLE>
else: session_start(); require "config.php3"; $b_price=trim($b_price_a).".".trim($ b_price_b); if(strlen($p_month)==1) $p_m if($p_m $p_m $date_pub=trim($p_year)."-".trim($p_month)."-01" ; $UploadAction=0; $repeat=0; //Is it repeated? $TimeLimit=0; //Set the timeout limit to 30 seconds by default. When set to 0, it is unlimited set_time_limit($TimeLimit ); @MYSQL_CONNECT($hostname,$dbusername,$dbpassword) OR DIE("Cannot connect to database!"); @mysql_select_db("$dbname") or die("Cannot select database!"); //$ q="select books.books_id, books.books_name,author.first_name,author.last_name,publisher.publisher_name from books,author,books_author,publisher where books.books_name="$b_name" and books.publisher_id=publisher.publisher_id and books .books_id=books_author.books_id and books_author.author_id=author.author_id"; $b_name=trim($b_name); $sele="select books.books_id, books.books_name,author.first_name,author.last_name,publisher. publisher_name,books.ISBN,books.price,books.date_pub,books.pages"; $fro=" from books,author,books_author,publisher "; if(trim($isbn)!="") $whe ="where books.ISBN="$isbn" "; elseif(trim($a_first1)!="" && trim($a_last1)!="" && trim($p_name)!="") $whe= " where books.books_name="$b_name" and books.publisher_id=publisher.publisher_id and books.books_id=books_author.books_id and books_author.author_id=author.author_id"; else{ $msg="The book title is required, Others: If the ISBN is empty, the author's first and last name, and the publisher are required. Please check if you meet the requirements.