aspose file tools
The moose likes Android and the fly likes App wont connect to my database? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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: 2329
I'd start by doing some logging on the PHP server to see what kind of requests get there.
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50691

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
 
 
subject: App wont connect to my database?
 
Threads others viewed
Client Android JSON--- Server side PhP .....error..!!
Httppost Problem
Post the data to Server
How to return a parameter from a servlet to the calling HttpClient
Input Data to MySQL Database
developer file tools