Set to start/default at 0 to prevent undefined errors

This commit is contained in:
Marcus Hill
2023-01-26 11:48:00 +00:00
parent fa8ce92b0e
commit e1c70af1f5
+2 -2
View File
@@ -1,5 +1,4 @@
<?php include("inc_all_reports.php"); ?>
<?php
<?php include("inc_all_reports.php");
$sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $session_company_id");
@@ -23,6 +22,7 @@ $sql_clients = mysqli_query($mysqli,"SELECT * FROM clients WHERE company_id = $s
</thead>
<tbody>
<?php
$recurring_total = 0; // Default value
while ($row = mysqli_fetch_array($sql_clients)) {
$client_id = $row['client_id'];
$client_name = htmlentities($row['client_name']);