question

josephgodwinke avatar image
0 Votes"
josephgodwinke asked LeonLu-MSFT commented

Connect to PHP API to get mysql data

I am fairly new to xamarin. So far I have managed to build an app that connect to mysql remotely and gets data. Howver I want to app to use an api instead of remote msql connection. I have php api arealdy set for this. how can i connect xamarin to mysql using php api?

dotnet-xamarin
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @josephgodwinke Are you trying to connect from your android app to Azure mysql database using Xamarin?

Regards,
Oury

0 Votes 0 ·

Not azure but any mysql database be it local or online without using remote mysql

0 Votes 0 ·

1 Answer

josephgodwinke avatar image
0 Votes"
josephgodwinke answered LeonLu-MSFT commented

Closes thing to any help is create a webservice https://docs.microsoft.com/en-us/xamarin/get-started/tutorials/web-service/?tabs=vswin then build on this to consume your Web API to CRUD any mysql data.

Also see here - https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/http-stack?tabs=windows

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for your sharing.

0 Votes 0 ·