打印本文 打印本文  关闭窗口 关闭窗口
图书管理程序(二)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:35:56
nbsp;   if(mysql_num_rows($results6)<1){
        $q_author3="INSERT INTO author (first_name, last_name, address, zipcode, telephone, email) VALUES ("$a_first2", "$a_last2", "$address",  "$zipcode", "$telephone", "$email")";
        $result3 = @mysql_query($q_author3);
        if($result3){
                   $author_id= mysql_insert_id();
          }
           
    }
    else
        $author_id =$count6[0];
    if($books_id!=""||$author_id!=""){
           $s_ba="select id from books_author where books_id="$books_id" and author_id="$author_id"";
           $resulta = @mysql_query($s_ba);
           //$counta=mysql_fetch_array($resulta);
           if(mysql_num_rows($resulta)<1){
            $q_books_author="INSERT INTO books_author (books_id, author_id, author_type) VALUES ("$books_id", "$author_id", "$author_type")";
            $author_id="";
            $resulta = @mysql_query($q_books_author);
        }
    }

}

echo"<BR><A HREF = $PHP_SELF>返回 </A>";
echo"</BODY></HTML>";

?>
<?
endif;
?> 

上一页  [1] [2] [3] 



打印本文 打印本文  关闭窗口 关闭窗口