Im making an Iphone application and need to implement remote DB server connection btw the server and the application. User input some data such as ID and password and I need them to be stored in a server.

First thing I tried to do is to get a MYSQL & APHACHE sever and connect my program to it but searched out some thread this is not a good way. Is there any other good approach to do?