Help for this page

Select Code to Download


  1. or download this
    $dbh=$db->prepare("SELECT -balance FROM Table1 
                       WHERE  username='$authuser' 
                              and balance < '-.01'");
    $dbh->execute();
    ($balance_due) = $dbh->fetchrow_array();
    
  2. or download this
    $dbh=$db->prepare("SELECT -balance FROM Table1 
                       WHERE  username='$authuser' 
    ...
    $dbh->execute();
    ($tmp) = $dbh->fetchrow_array();
    $balance_due = 0 - $tmp;
    
  3. or download this
    $dbh=$db->prepare("SELECT -balance FROM Table1 
                       WHERE  username='$authuser' 
    ...
    $dbh->execute();
    ($tmp) = $dbh->fetchrow_array();
    $balance_due = substr $tmp, 1;