Array $list is a list of items from a query and array $summary is a summary of that list (count, sum, etc). I echo each array to a table. I want to echo $summary array below the $list array. However $summary always appears to the right of $list. No matter how I use \n or
or
I can’t get it to echo on a new line. How do you do that? code is below.
$depositdate = $_POST[“date”];
echo “Date = “,$depositdate,”
”;
$list = mysql_query(“SELECT BankDepDate, UnitNo, LastName, Payments
FROM v_transactions
WHERE Payments >0 AND BankDepDate = ‘$depositdate’”);
echo ‘
Date | Unit | Name | Amount |
---|---|---|---|
$row[0] | $row[1] | $row[2] | $row[3] |
Date | Sum of Payments | Count of Payments |
---|---|---|
$row[0] | $row[1] | $row[2] |