<?
$query5 = "select bo_7 from g4_board  ";
	$result5 = sql_query($query5);
	while($row  = sql_fetch_array($result5)) {
	
		$check = $row[bo_7]; //parts

	}
?>
<input type="hidden" name="bo_7" value="<?=check?>">
<table width=100%>
<tr>
	<td height=10></td>
</tr>
<tr>
	<td align=center>대여할 도서의 바코드를 찍으세요.</td>
</tr>
<tr>
	<td height=10></td>
</tr>
<tr>
	<td align=center><input type="text" name="book_lend"></td>
</tr>
<tr>
	<td height=10></td>
</tr>
<? if($check == 1) $a = "대여자 코드";
	else $a = "대여자 이름";?>
<tr>
	<td align=center><?=$a?></td>
</tr>
<tr>
	<td height=10></td>
</tr>
<tr>
	<td align=center><input type="text" name="person"></td>
</tr>
<tr>
	<td height=30></td>
</tr>
</table>