J
|
Jane 11/28/2008 |
Hi, global $conn,$strTableName; $rs = CustomQuery("select sum(`Amount Used`) from `Pull Inventory` where DetailKey=".$_SESSION[$strTableName."_masterkey1"]); $data = db_fetch_numarray($rs); $strUpdate = "Update `New Inventory` set `Current Balance`=`Initial Qty`-".$data[0]." where MasterKey = ".$_SESSION[$strTableName."_masterkey1"]; db_exec($strUpdate,$conn);
|
![]() |
vin7102 author 11/28/2008 |
Hi Jane, |
C
|
chaintm 11/29/2008 |
Where $rs line has DetailKey should be the actual database file name, IE if your working within a schema named sales, that field would be called sales, as you are using the DetialKey as the "lookup" for that name. |