See am doing an android application,it has a web back end,am using wordpress,but how can i code web services in wordpress?suppose i need to fetch some contents from database and pass it as json to android phones.So where should i place the php script or how can i do this?Is it possible to do web services using wordpress?

Here is the code:

$select_qry="select * from admin_details where username='$uname' and  password='$paswd'";

How can i do this in wordpress?

Please help me..


i think you can not do it,
because the database you are fetching is not on wordpress server, so register on any webhost and create here database then upload your php file on that server.

This article has been dead for over six months. Start a new discussion instead.