I've successfully been able to GET pre defined static data from my D1 database (by using the generic js code) but I'm not able to query the DB by sending a search string into the js DB function code. here are my 2 js codes
javascript.js async function searchCustomers() { const companyNameInput = document.getElementById('companyNameInput').value;
console.log('Input value:', companyNameInput); // Log the input value to the console
const data = await response.json(); // Handle the data or update the resultsContainer as needed document.getElementById('resultsContainer').innerHTML = JSON.stringify(data); }