I have a search bar in a page that shows a table. When I update or delete the data from the main page with the action buttons it works but when I search for a particular row and try the same it does not work although the data is being fetched when I click the update action button but when I cick update in the modal that appears, it does not work. The update and delete modal are both in different php files and the buttons target them. The search bar also uses AJAX and the display is in another php file whose results are displayed in the main page
I inspected the page to see if there was an error but nothing is showing there.