<TABLE align=center> <TR><TD align=center> <INPUT NAME = "submit" VALUE = "提交" TYPE = "submit"> <TD><INPUT NAME = "reset" VALUE = "重置" TYPE = "reset"> </TD></TR> </FORM></CENTER></TABLE></BODY>
$UploadAction=0; $repeat=0; //是不是重复了。 $TimeLimit=0; //设置超时限制时间缺省时间为 30秒设置为0时为不限时 set_time_limit($TimeLimit); @MySQL_CONNECT($hostname,$dbusername,$dbpassWord) OR DIE("不能连接数据库!"); @mysql_select_db("$dbname") or die("不能选择数据库!"); //$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="书名为必填,其他如果ISBN为空,则作者的姓、名,出版社为必填。<BR>请检查是否符合要求。"; xueroom_error_exit($msg,$PHP_SELF);