Here's an example of what it's going to take to make it work. Good luck. [codebox]$rs stands for result
=================================================
global $strTableName,$conn; if ($_SESSION[$strTableName."_masterkey1"]) { $rs = CustomQuery(Select "amountreceived", "amount refunded" as subbalance from financial where IDmember=".$_SESSION[$strTableName."_masterkey1"]); $data = db_fetch_array($rs); $strUpdate = "update financial set 'Balance' =".$data["subbalance"]."
where `ID`=".$_SESSION [$strTableName."_masterkey1"]; db_exec($strUpdate,$conn);