<?
@session_start();
include("config.php");
$result = mysql_query( "select * from tb_borrow where id ='$_POST[id]' ");
while($fetch= mysql_fetch_array($result)) {
$up_equipment =mysql_query("update tb_equipment set eq_num = eq_num+$fetch[num] where sent_eq = $fetch[sent_eq] " );
$sql = mysql_query("update tb_borrow set check_borrow ='y' where id_borrow =$fetch[id_borrow]");
}
$sql = mysql_query("update id_member set status ='3',d_sent=NOW() where id ='$_POST[id]'");
header("location:check_member.php");
?>