php code run in server to support connection between database and mobiles