sencha connecting to mysql
===

i am new to Sencha. could someone give me an example whereby my application can connect to Mysql db and then it can go to offline mode as well using local storage. once re-connected, it should sync with the mysql database.

lets suppose, there is a table called customer with just 2 columns, cust_code and cust_name. i would like to extract all customers from the db and add few customers on the device which gets added to original db.

i do not know how to make mysql db available via internet for my sencha app to connect to as well..

please help.

thanks..