Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7510947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:23:20+00:00 2026-05-29T23:23:20+00:00

I’m new to the whole mobile app development scene regarding database connection on a

  • 0

I’m new to the whole mobile app development scene regarding database connection on a external server.

How is it working exactly regarding storing user and password data and execution? One parallell mindset I have is how dynamic web languages like php/asp works. When the file contaning the database username and password are stored and executed on the web server.

Is it the same for apps? Somebody who has a link to an article about this? Preferably how this work for both iPhone and Android.

Greetings

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:23:21+00:00Added an answer on May 29, 2026 at 11:23 pm

    I would use something like restful webservices for this.

    Your web server will have (for example) php on it, then your app will make a request to that server (just like requesting a web page). That will then access the database and read and write from/to the database. Your database username and password would be secured on your server in the php code.

    If you have individual username and passwords, then you will need to have some way for them to “log in” to your server. For this you might have a webservice that takes the username and password, validates them and then returns a token. This token is stored on your device and is then included in every request you make to your server and is then validated at each request.

    Example…
    http://myserver.com/login.php – your app requests this and sends the username and password in the post request. login.php would take the username and password from the passed-in parameters and compare them against your username/password database. If validated, the php would then return a token which will then be returned to your calling app.

    http://myserver.com/getData.php – your app requests this and sends any parameters required for the query and also sends the token.

    On the server, the php code would take the token passed in and check that it is still valid and if so, it then runs the query on the database with the parameters supplied, using a connection that is only within your php code and returns the data which your app then displays.

    This would work for any device, and would also be usable with a desktop client if you wanted to write that in the future also.

    Things you might want to research….
    PHP (or ASP.net or whatever you feel comfortable with)
    JSON (for transferring data to/from the server)
    SQL Injection and security techniques
    RESTFUL Webservices (MUCH easier than SOAP)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have a reasonable size flat file database of text documents mostly saved in
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.