$username Posted February 10, 2008 Share Posted February 10, 2008 Hello everyone, So I want to add up some columns then display passed on a ID field. Is there something I am doing wrong? Here is some code. $sql531= mysql_query("SELECT * FROM payments WHERE PaymentAccountID = '$AccShow'"); while($row531 = mysql_fetch_array($sql531)) { echo "<tr>"; echo("<td><a href=\"?invoiceid=".$row531["PaymentInvoiceNum"]."\" title=\"".$row531["PaymentInvoiceNum"]."\"> Invoice </a></td>"); $TotalAmount += ($row532['PaymentUnitPrice'] * $row532['PaymentQuantity']); echo "<td>$TotalAmount</td>"; echo "<td></td>"; echo "<td>".$row531['PaymentCreateDate']."</td>"; echo "<td>".$row531['PaymentDueDate']."</td>"; echo "</tr>"; } Quote Link to comment https://forums.phpfreaks.com/topic/90296-trying-to-add-mysql-columns-and-then-display/ Share on other sites More sharing options...
$username Posted February 10, 2008 Author Share Posted February 10, 2008 I fixed this it was a typo. Thanks, Brett Quote Link to comment https://forums.phpfreaks.com/topic/90296-trying-to-add-mysql-columns-and-then-display/#findComment-463004 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.