$query = "SELECT nr,date,description,price FROM sales WHERE paid=0 AND visible=1 ORDER BY date,nr";
$sth = pg_exec ($dbh, $query);
- if (!form && pg_NumRows ($sth) > 0) {
+ if (!$form && pg_NumRows ($sth) > 0) {
$form = 1;
echo ("<h3>Nicht bezahlte Rechnungen</h3>");
echo ("<form method=\"POST\" action=\"pay.php\">");