mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 10:54:52 +00:00
replace all instances of mysqli_fetch_array with mysqli_fetch_assoc for better performance and memory usage
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user