Interface to an internet based database ?

Hi All

I have an upcoming project when I need to read from a MySQL database on the internet, to a mobile device. I was wondering if Corona would be useful for such a task?

Normally, I’d write the server-side scripts and just access the data with a browser, but I’d like to do it from an App. Possibly adding the ability to import data?

Are there any tutorials on interfacing with another database?

So far I can only find Jonathan Beebe’s Database Access tutorial, which deal with creating and updating a local database on the device.
[import]uid: 97524 topic_id: 36152 reply_id: 336152[/import]

I would recommend setting up a REST-ful server side API for the app to communicate with the database. There are tons of How-Tos on the internet for doing this with various programming languages. Depending on the security of the data, you will probably need to set up SSL and use various other encryption techniques as well. I would NOT recommend trying to access your MySQL database directly from the app. [import]uid: 92150 topic_id: 36152 reply_id: 143595[/import]

Thanks

I’ll look into REST.

Never heard of it before, but a quick read reveals it’s been adopted by Google and Facebook.

[import]uid: 97524 topic_id: 36152 reply_id: 143597[/import]

Check out this blog post:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

It should get you started. Yes, Corona does a great job with these types of apps. [import]uid: 199310 topic_id: 36152 reply_id: 143661[/import]

depending upon the complexity of the data you’re accessing, you could also just write a php script that outputs results from the db as JSON. Corona handles that nicely as well. [import]uid: 32462 topic_id: 36152 reply_id: 143668[/import]

…and now that I’ve actually looked at rob’s link I can see that’s exactly what he’s doing. [import]uid: 32462 topic_id: 36152 reply_id: 143669[/import]

I would recommend setting up a REST-ful server side API for the app to communicate with the database. There are tons of How-Tos on the internet for doing this with various programming languages. Depending on the security of the data, you will probably need to set up SSL and use various other encryption techniques as well. I would NOT recommend trying to access your MySQL database directly from the app. [import]uid: 92150 topic_id: 36152 reply_id: 143595[/import]

Thanks

I’ll look into REST.

Never heard of it before, but a quick read reveals it’s been adopted by Google and Facebook.

[import]uid: 97524 topic_id: 36152 reply_id: 143597[/import]

Check out this blog post:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

It should get you started. Yes, Corona does a great job with these types of apps. [import]uid: 199310 topic_id: 36152 reply_id: 143661[/import]

depending upon the complexity of the data you’re accessing, you could also just write a php script that outputs results from the db as JSON. Corona handles that nicely as well. [import]uid: 32462 topic_id: 36152 reply_id: 143668[/import]

…and now that I’ve actually looked at rob’s link I can see that’s exactly what he’s doing. [import]uid: 32462 topic_id: 36152 reply_id: 143669[/import]

I would recommend setting up a REST-ful server side API for the app to communicate with the database. There are tons of How-Tos on the internet for doing this with various programming languages. Depending on the security of the data, you will probably need to set up SSL and use various other encryption techniques as well. I would NOT recommend trying to access your MySQL database directly from the app. [import]uid: 92150 topic_id: 36152 reply_id: 143595[/import]

Thanks

I’ll look into REST.

Never heard of it before, but a quick read reveals it’s been adopted by Google and Facebook.

[import]uid: 97524 topic_id: 36152 reply_id: 143597[/import]

Check out this blog post:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

It should get you started. Yes, Corona does a great job with these types of apps. [import]uid: 199310 topic_id: 36152 reply_id: 143661[/import]

depending upon the complexity of the data you’re accessing, you could also just write a php script that outputs results from the db as JSON. Corona handles that nicely as well. [import]uid: 32462 topic_id: 36152 reply_id: 143668[/import]

…and now that I’ve actually looked at rob’s link I can see that’s exactly what he’s doing. [import]uid: 32462 topic_id: 36152 reply_id: 143669[/import]

I would recommend setting up a REST-ful server side API for the app to communicate with the database. There are tons of How-Tos on the internet for doing this with various programming languages. Depending on the security of the data, you will probably need to set up SSL and use various other encryption techniques as well. I would NOT recommend trying to access your MySQL database directly from the app. [import]uid: 92150 topic_id: 36152 reply_id: 143595[/import]

Thanks

I’ll look into REST.

Never heard of it before, but a quick read reveals it’s been adopted by Google and Facebook.

[import]uid: 97524 topic_id: 36152 reply_id: 143597[/import]

Check out this blog post:

http://omnigeek.robmiracle.com/2012/04/15/using-corona-sdk-with-rest-api-services/

It should get you started. Yes, Corona does a great job with these types of apps. [import]uid: 199310 topic_id: 36152 reply_id: 143661[/import]

depending upon the complexity of the data you’re accessing, you could also just write a php script that outputs results from the db as JSON. Corona handles that nicely as well. [import]uid: 32462 topic_id: 36152 reply_id: 143668[/import]