C# read data from mysql that is not localhost

what is the best way to use c# to read data from website (data base is mysql) the host only allow to add mysql user from localhost

read only not write
teeraAsked:
Who is Participating?
 
Ray PaseurCommented:
PHP can be used to produce any kind of browser output, including plain text, HTML, JSON, XML, etc.  So the output from the server will be usable in a RESTful interface.

Is your question about how do I read from a web service or how do I create a web service that others can read ??
0
 
Ray PaseurCommented:
Create a web service on the server that has the data base.   Use a RESTful design to access the data.
0
 
Richard DavisSenior Web DeveloperCommented:
I don't mean to be rude, but since when does C# topics end up in a PHP category?
0
 
Dave BaldwinFixer of ProblemsCommented:
" when does C# topics end up in a PHP category? "

When they put it there.  Doesn't mean it was a good idea...  but we'll see.  Since the host is not allowing external access directly to the database, the asker may end up using Ray's suggestion for a web service based on PHP.
0
 
teeraAuthor Commented:
Hi experts

I can use php on that server so if I use php to generate some thing that c# can read but I am not sure what I should do
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.