Get Filled Orders

<script>
        // JavaScript code to update the SQL query output
        var sqlOutput = "<?php echo $sql; ?>";
        document.getElementById("sqlOutput").innerText = "SQL query: " + sqlOutput;
    </script>