Please i am trying to update a db, and its not working, the code is below, any clue will be appreciated


PHP Code:
                                 <tr>
    <th>OUTSTANDING</th>
    <th><?php
    $pplresult 
mysql_query("SELECT * FROM outstanding WHERE Uname = '{$_SESSION['username']}'") or die(mysql_error());
  
$row mysql_fetch_assoc($pplresult); 
    
//echo $obal;
   // echo $row['obal'];
if($totalprice=0){
 
$queryreg mysql_query("
UPDATE outstanding 
    SET obal = '
{$row['outstandingbal']}
            WHERE obal='
{$row['obal']}
        AND 
            Uname = '
{$_SESSION['username']}'
 "
) or die(mysql_error());
      
$queryreg2 mysql_query("
        UPDATE outstanding 
                SET outstandingbal='0' 
                    WHERE outstandingbal='
{$row['$outstandingbal']}
                            AND Uname = '
{$_SESSION['username']}'
   "
) or die(mysql_error());
 }
  echo 
$row['obal'];
  
?></th>                
           </tr>