CoronaSDK with Database Online free

Hi

I developed my very first mobile app with a distributed @nuvolabase database.

You can create free account on (http://www.nuvolabase.com)
With few of line-code you can create un app mobile that connects to a database online free.

You can make the instruction sql and run with network.request

Example

Select or Insert

Write me if you need any advice

[import]uid: 100428 topic_id: 22625 reply_id: 322625[/import]

Instruction line-code
http://samplecoronasdk.blogspot.com/2012/02/use-database-nuvolabase-with-corona-for.html [import]uid: 100428 topic_id: 22625 reply_id: 90492[/import]

Hi erasmo.marciano,

I want to develop a app connect to a web database and your code is simple.
just want to know what is the name of database and username refer to in your blog.

Would you mind to create a simple app sample connect to existing database.

Thanks
[import]uid: 58098 topic_id: 22625 reply_id: 91093[/import]

Hi

I’m making game app mobile.

I’m using nuvolabase as database online for to save nickname, points, records. etc…

local function networkListener( event )  
 if ( event.isError ) then  
 print( "Network error!")  
 else  
 obj=event.response  
 myText.text=json.decode(event.response).result[1].nome  
 print ( "RESPONSE: " .. event.response )  
 end  
end  
  
--You make the request for nuvolabase  
  
headers = {}  
headers["Authorization"] = "Basic XXXXXXXX"  
local params = {}  
params.headers = headers  
--Here you connect database  
  
 network.request( 'http://studio.nuvolabase.com/query/db$free$XXX$XnameDBXX/sql/select+XXX+from+table+limit+10', "GET", networkListener,params )  
  

You haven’t need of driver or particular string of connection as in java or php, but you have need alone of this objcet:

 network.request  

http://developer.anscamobile.com/node/5305

Great CoronaSDK

Great NuvolaBase

OK?
[import]uid: 100428 topic_id: 22625 reply_id: 91238[/import]