From a939588cf2b18ef65d1551bbf3158570d0b14c19 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Tue, 21 Sep 2021 22:22:55 -0400 Subject: [PATCH] New File upload logic complete Breaking changes New db dump --- client_files.php | 10 +- companies.php | 2 +- db.sql | 4 +- edit_company_modal.php | 4 +- edit_expense_modal.php | 2 +- edit_user_modal.php | 4 +- expenses.php | 4 +- guest_view_invoice.php | 6 +- guest_view_quote.php | 6 +- invoice.php | 5 +- post.php | 552 ++++++++++++++++++++++++++++++++--------- quote.php | 7 +- recurring_invoice.php | 3 +- settings-user.php | 4 +- setup.php | 93 ++++++- top_nav.php | 4 +- users.php | 2 +- view_file_modal.php | 4 +- 18 files changed, 549 insertions(+), 167 deletions(-) diff --git a/client_files.php b/client_files.php index 3219278e..1bf60aac 100644 --- a/client_files.php +++ b/client_files.php @@ -32,6 +32,7 @@ $num_of_files = mysqli_num_rows($sql_files_images) + mysqli_num_rows($sql_files_ while($row = mysqli_fetch_array($sql_files_images)){ $file_id = $row['file_id']; $file_name = $row['file_name']; + $file_reference_name = $row['file_reference_name']; $file_ext = $row['file_ext']; ?> @@ -39,12 +40,12 @@ $num_of_files = mysqli_num_rows($sql_files_images) + mysqli_num_rows($sql_files_
- + ">
- +