Hi, I'm very new to appcelerator and mobile development and would appreciate any help you can give me.
I've just tried to follow the workshop example to make a very basic app with register and login screens (http://wiki.appcelerator.org/display/guides/HTTPClient+with+PHP+and+MySQL)
I downloaded the source from the page and have added the mobile.php file to my server (making sure to re-configure the preset SQL login details).
There are 3 main problems I'm having:
The workshop starts by mentioning "config.js" which will hold "global variables". After the introduction, config.js is not mentioned again and is not included in the source download - do I need this file and if so, what should be in it?
When I test the example code on my simulator or iPad device the interface works fine, but clicking "register" or "login" simply does nothing at all...
I can test my "mobile.php" script via my browser by typing http://localhost/mobile.php?action=add_user&user=TestUser&pass=12345&email=TestEmail
This results in an error message:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /usr/www/www.lastminutemusicians.com/htdocs/mobile.php on line 21 [{"result":"true"}]
Having said that, I've checked my database and it has added a new user, so mobile.php appears to be working (to a point!).
I'm now a bit stuck as to how to move forward.
If anyone can suggest any answers to these issues I would be very very grateful!!
Many thanks.