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
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
WHERE Payments >0 AND BankDepDate = ‘$depositdate’”);
|Date||Sum of Payments||Count of Payments|