replace all instances of mysqli_fetch_array with mysqli_fetch_assoc for better performance and memory usage

This commit is contained in:
johnnyq
2026-01-14 17:30:23 -05:00
parent cb8b99d6ae
commit 0a30300bde
361 changed files with 1880 additions and 1904 deletions

View File

@@ -45,7 +45,7 @@ $documents_sql = mysqli_query($mysqli, "SELECT document_id, document_name, docum
<tbody>
<?php
while ($row = mysqli_fetch_array($documents_sql)) {
while ($row = mysqli_fetch_assoc($documents_sql)) {
$document_id = intval($row['document_id']);
$folder_name = nullable_htmlentities($row['folder_name']);
$document_name = nullable_htmlentities($row['document_name']);
@@ -159,7 +159,7 @@ $documents_sql = mysqli_query($mysqli, "SELECT document_id, document_name, docum
<div class="form-group">
<label>Upload File <strong class="text-danger">*</strong></label>
<input type="file" class="form-control-file" name="document_file" id="documentFileInput"
<input type="file" class="form-control-file" name="document_file" id="documentFileInput"
accept=".pdf,.doc,.docx,.txt,.md,.odt,.rtf" required>
<small class="text-secondary">Supported formats: PDF, Word documents, text files</small>
</div>