Hey guys, I am working on a website that displays the data on the table according the data (id) inputted by the user. I have an ‘POST’ ajax method in my html that sends data to the php file which then gets an appropriate data from the database and returns it back to the html file. The problem I encounter is that every time data is passed back to the html, I get “Unexpected token < in JSON at position 1” error. I have been banging my head over this for quite a while so I will deeply appreciate any help. Thanks!
P.S. I added the contents of the php file as an image.