prepare($sql); $stmt->bind_param("iss", $client_id, $doc_type, $processed_file); $stmt->execute(); header("Location: index.php?page=doc_list&client_id=" . $client_id); } else { header("Location: index.php?page=doc_upload&error=1"); } ?>