is there a way for me to access the database from an app.
basically im using appgini to create a backend office where management is the only one that can add info to the database
users can signup on web site but cant view any info from the website
then im creating an iphone app where the app will access the database info but only if they are a registered user
database access
Re: database access
Yes. This is possible. Which SDK are you using for iPhone development? Native?
Re: database access
Great! Same here.
See http://omnigeek.robmiracle.com/2012/04/ ... -services/
All info you need is in there. If you want more detail you might want to check out MasteringCoronaSDK.com Business Apps Edition. Covers this type of access step by step.
Good luck!
See http://omnigeek.robmiracle.com/2012/04/ ... -services/
All info you need is in there. If you want more detail you might want to check out MasteringCoronaSDK.com Business Apps Edition. Covers this type of access step by step.
Good luck!
Re: database access
You're most welcome. Let me know if you get stuck. You can find me here or on the Corona forum (same forum name). All the best.
Re: database access
thx im working though the example now then ill try to connect to the appgini db
Re: database access
working though the example
maybe i didnt setup the database correct for the password
i keep getting error 403 forbidden
maybe i didnt setup the database correct for the password
i keep getting error 403 forbidden
Re: database access
i think i got it
i changed this line of code
if (strcmp($player["password"],md5($password)) == 0) {
to this
if (strcmp($player["password"],md5($password)) == 1) {
and it seems to work
i changed this line of code
if (strcmp($player["password"],md5($password)) == 0) {
to this
if (strcmp($player["password"],md5($password)) == 1) {
and it seems to work
Re: database access
nope i was wrong this lets any password work so its got to be the password field is not setup correct in the database
Re: database access
ok now i know for sure its the md5 encryption giving me problems
just need to figure out how to make that work
just need to figure out how to make that work
Re: database access
Why not go simple and make it work first with an unencrypted password? Create a user on the db with minimal rights so you don't care if someone snoops that passw for now. Just an idea.