I want to thank everyone here from the past and in the future who have helped me on my journey. So, I have a new app for iOS where I want to search a MYSQLi database from the iOS app. From there, I want it to populate the results in a UITableView. I already have the code for the Table View. I also already know how to use the json_encode function in PHP. My question is how do you send a query to a MYSQL database from an iOS app and have it come back as JSON? For example, below is how I search my MYSQL database from my website. I want to do the same thing from inside my iOS app.
I should mention, I am already using JSONSerialization class and the parsing is good. I just don't know how to send queries from iOS to MYSQL and get something back.