<?php


session_start();
if($HTTP_SESSION_VARS['dbName']==""){
header("location:../index.php");
}

include("config.inc.php");

$connection = mysql_connect($config['dbServer'],$config['dbUser'],$config['dbPass'])
		or die("Could not connect to DB");
		
$query="update ".$HTTP_SESSION_VARS['tableb']." set quantity = ".$qty." where transfer_id = ".$transferid." and transferdt_id = ".$transferdtid;
$result=mysql_query($query,$connection);

print <<<HERE
<script type="text/javascript" language="javascript">
window.close();
</script>
HERE;
?>