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