wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "App wont connect to my database?" Watch "App wont connect to my database?" New topic
Author

App wont connect to my database?

jp carey
Greenhorn

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
Rancher

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

Joined: Jan 10, 2002
Posts: 60740
    
  65

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
Greenhorn

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?
 
Similar Threads
Post the data to Server
How to return a parameter from a servlet to the calling HttpClient
Client Android JSON--- Server side PhP .....error..!!
Httppost Problem
Input Data to MySQL Database