facebook

App with backend DB (mySQL/PHP) – Form/Login problems ect.

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #342179 Reply

    App with backend DB (mySQL/PHP) – Login problems

    Hi everyone, I’ve been a professional programmer for 20 years, working with large Enterprise systems, and now I’ve deiced to start program APPS using MobiOne.

    The design fase seems very simple but exchanging data with a backend system gives me problems.

    I’ve made a page with a form and I’m trying to parse email and password to the backend system but nothing happens!

    Basically I send a email and pwd to the webservice and check if user exists and the pwd is correct.

    If email or pwd are not correct it generate a json file (login.json) looking like this: “{“root”:[{“login”:{“result”:”login failed”}}]}”

    In that case I need the app to show a warning on the login screen.

    If the user exist and the pwd is correct, I need the data in a (login.json) looks like this:
    “{“root”:[{“login”:{“id”:”2″,”email”:”my@email.com”,”pwd”:”MyPass”,”gender”:”Male”,”dob”:”1968-09-18″,”category”:”1″,”customer_type”:”1″,”push”:”YES”,”max_dis”:”50000″,”created”:”2012-07-01 00:00:00″,”updated”:”2013-08-13 10:30:05″,”lngd”:””,”ltd”:””,”dev_token”:””,”badge”:”0″,”veri_key”:”1jopw”,”verified”:”1″,”device_os”:””,”app_version”:””,”last_login”:”2013-09-07 09:26:13″,”category1″:”All”,”customer_type1″:”All”}}]}”

    In that case I need the app to go to a new page and import data from another json file…

    And that’s my big problem – I do not have a clue how to do that, and I’ve not been able to google it…

    Another question I have is – what Page Architecture should I choose for an app like this?
    Default, Local Web Page (static) or Remote Web Page (AJAX)?

    Any help would e appreciated 🙂

    Thanks

    #342182

    Brandon
    Member

    A couple resources that could help out:

    http://cincyplanet.com/mobione/

    Look at the PHP Login sample

    JSON Processing:
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=5231

    Loading a Webservice
    http://www.genuitec.com/support-genuitec/viewtopic.php?f=8&t=6004&hilit=JSON

    Hope these help.

    #342216

    thanks for your reply.

    However I still have problems parsing the data from the json file to PHP. Muy json file have multiply arrays and I can not find the right syntax….

    My jsonfile can be found here: http://dealsnearbyyou.com/app/ad_search.json

    See structure here: http://jsonviewer.stack.hu/#http://dealsnearbyyou.com/app/ad_search.json

    I need the data for each id, catagory ect.

    #342361

    Hi,

    Server side issues are outside of mobione support scope. Have you googled for solutions as this seems doable.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: App with backend DB (mySQL/PHP) – Form/Login problems ect.

You must be logged in to post in the forum log in