| Investor Name: | " . $row['investor_name'] . " |
| Stock Symbol: | " . $row['stock_symbol'] . " |
| Shares Traded: | " . $row['num_shares'] . " |
| Bought: | $" . $row['price_bought'] . " |
| Sold: | $" . $row['price_sold'] . " |
| Gain/Loss %: | %"; function round_up($value, $places=0){ if($places < 0){ $places = 0; } $mult = pow(10, $places); return ceil($value * $mult) / $mult; } echo round_up($gain_loss_perc, 2); echo " |