I am developing an android app! Thought of using REST webservice with PHP to connect with remote database. I am a newbee to this. anybody with some example code on connecting login table with REST & PHP would help me a lot...
As mentioned else where in another question you asked, DBs are not accessible via HTTP. You'll need to route the call through an HTTP server. One possibility would be a servlet container like Tomcat that runs the RESTful service using a library such as Jersey.
What's best for you depends on lots of circumstances about which we know nothing. Maybe start by telling us why you think the approach I mentioned might not be a good one in your situation.
Calling a RESTful WS from Android is pretty easy, as it has the capable Apache Commons HttpClient library built in. There are lots of example on how to use it around on the web; there's nothing Android-specific about it.