Problems using php

Can someone tell me what’s up? I have a lot of PHP files that were working until my recent
xampp upgrade. Now these type messages are showing up everywhere:

Parse error: syntaxo error, unexpected ‘<’ in C:\xampp\htdocs\invoice\apdue.php on line 10.

Below is the code.Thanks for the help.


<?php
error_reporting(0);
mysql_connect('localhost','root',' ');
mysql_select_db('oodb') or die("Unable to select database");
$query=" SELECT * FROM 'oocust' WHERE  payrec = 'P' and pd = ' '
$result=mysql_query($query);
$num=mysql_numrows($result);
echo date('m/d/y');
<font size=+2><b> Accounts Payable Report<p>";
<table cellspacing=1 cellpadding=0 border=0>";
<tr>
<th colspan=3></th>
<th>due</th>
<th>days</th>
<th></th>
<th></th>
<tr>
<th>acct#</th>
<th>customer</th>
<th>description</th>
<th>date</th>
<th>late</th>
<th align=right>charges</th>
<th align=right>paid</th>
<th align=right>due</th>
<tr>
<TH colspan=9>==================================</th>
</tr>";
while($row = mysql_fetch_array($result))
{
$totcharges = $totcharges + $row['charges'];
$totdue = $totdue + $row['amtdue'];
$totpaid = $totpaid + $row['paidamt'];
echo "<tr>";
echo "<td>" . $row['acctno'] . "</td>";
echo "<td>" . $row['bname'] . "</td>";
echo "<td>" . $row['descr'] . "</td>";
echo "<td>" . $row['duedate'] . "</td>";
echo "<td align=right>" . $row['dayslate'] . "</td>";
echo "<td align=right>" . $row['charges'] . "</td>";
echo "<td align=right>" . $row['paidamt'] . "</td>";
echo "<td align=right>" . $row['amtdue'] . "</td>";
}
echo "<tr>";
echo "<th colspan=9>============================</TH>";
echo "<tr>";
echo "<td>Gtotals</td>";
echo "<td colspan=4></td>";

echo "<td align=right>" . sprintf("%.2f",$totcharges) .
"</td>";
echo "<td align=right>" . sprintf("%.2f",$totpaid) .
"</td>";
echo "<td align=right>" . sprintf("%.2f",$totdue) .
"</td>";
echo "</tr>";
echo "</table>";
mysql_close();
?>

Your quotes are messed up starting with line 5 above ($query=)


echo date('m/d/y');
<font size=+2><b> Accounts Payable Report<p>";
<table cellspacing=1 cellpadding=0 border=0>"; 

should be


echo date('m/d/y');
echo "<font size=+2><b> Accounts Payable Report<p>
<table cellspacing=1 cellpadding=0 border=0>

You definitely have syntax errors. I don’t see how this would have worked on your previous installation either.

EDIT: @ginerjm ; is actually more correct.