Languages

Menu
Sites
Language
Smart tv app connection SQL database

Hi,

I`m trying to connect a Samsung Smart tv app with a remote SQL database on Tizen studio (all the tv tools installed), I read that tizen don`t permits use php on html or javascript codes, is this true??

Is possible connect a smart tv app with a remote SQL DB? Have Tizen some library to connect? or Which is the language/code to make this connection?

Thanks.   

Responses

3 Replies
Safwan

# Tools for Tizen TV application development is HTML,CSS,JS. So, sure you can use them.

   You cannot use 'php' in Tizen TV, 'php' is generally used for Server side Programming.

 

 

# To connect with a existing remote DB and read/write data from a Tizen TV application:

 - You can a write a server side application (may be using php or node.js) that may respond with a JSON / SOAP message when a Http request is send to it. (On  Server PC, not tizen stuff)

- Then Send a XML Http Request or jquery AJAX request from your Tizen TV Web app to get data from DB or to set data on DB . (Client side: Tizen TV app)

 

Related Docs:

XMLHttp Request (Guide)

XMLHttp: Post, XMLHttp: Get

XMLHttp Request: SOAP Message (Tip&Tech)

(Don't miss adding access policy and internet privilege in config.xml: Details in post)

 

 

# Or you can work with Internal storage, Tizen TV offers storages like: Storage Options

Web Storage,  Web Storage Guide

File system

Indexed Database API

These are not SQL DataBases, but you can surely carry some basic operations.

paul del valle

Hi again and thanks for the help,

Reading your post, Is possible make Http request on tv app javascript, to phpMyAdmin on server side (NAS)? with open (to autenticate on phpMyAdmin) and send (to write the SQL request) methods.    

Best regards.

Safwan

Yes, You can Simply communicate using Http request from javaScript to server side. Just like every web developers do!  :)

Shoudn't be any Issue.