I would like to connect my app to a relational database such as MySQL or PostgreSQL. Can anybody help me do that?
i think you should do it by web service
You mean sending the data to a php page for example to perform the database transaction?
exactly you dont have to work with db but with api that lets you interact with db through api call