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]