Connecting to a database remotely

hey guys,
I’m hosting a website which purpose is to store dogs for adoption from all accross the country.
many organizations can use it to uplaod their dogs/cats for adoption

The thing is that they got a site as well for their dogs only
So i was wondering, is there any way to safely connect to my database through their host to publish their dogs/cats on their website (so this way they only have to uplaod them to my site)

I know i can probably just use mysql_connect func and provide my db details in it, but thats not safe (i hope no need to mention why :slight_smile: )

Any ideas?
Thanks,
Ulthane.

Create an API that others can use to communicate with your application…do not give direct access to your database under any circumstances.

any guides/tutortals or anything to guide me through?

still looking for anyone who has done such a thing or knows how to do so to guide me through…

API design is tailored to the specific application in question. There is no one size fits all.