jQuery in Action, 3rd edition
The moose likes Android and the fly likes App wont connect to my database? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "App wont connect to my database?" Watch "App wont connect to my database?" New topic

App wont connect to my database?

jp carey

Joined: Jan 15, 2012
Posts: 6
Hello I am new to java and php and cant figure out why my app is not updating/adding information to my database. I have a registration page and would like the username, password, and email to be updated and saved in my database but when I run the app I keep getting my toast message that says "can not log in"....can anyone help me with this and see what I am doing wrong? Thanks in advance for any help

Here is my login page

And here is my PHP
Tim Moores

Joined: Sep 21, 2011
Posts: 2409
I'd start by doing some logging on the PHP server to see what kind of requests get there.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63334

Most modern browsers have network debugging tools built in. Those in Safari and Chrome are excellent. Use them to see what's actually being sent back and forth.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jp carey

Joined: Jan 15, 2012
Posts: 6
Sorry about that, didnt read how to format the code in this forum, ill be sure to remember that next time I have a question. Thanks for the suggestions guys ill check out the server and see what data if any is actually being sent
I agree. Here's the link: http://aspose.com/file-tools
subject: App wont connect to my database?
It's not a secret anymore!