Help with Unity and databases

Hi, I need help.

I want to do a Unity app, this app will be for Web and for iPhone, these applications will connect to the same database. The applications have the same functionality, but different platforms. Can i use System.Data to connect to the database in the two platforms or exist other method to do this.

I know the the security issue of using System.Data on web but a don`t have any idea.

Thanks for the help. and sorry for my bad english.

If System.Data happens to use System.Net sockets, then yes.
If it relies on the request classes of system.net then no, they are not supported outside standalone builds as far as I know

I don’t know if System.Data uses sockets, but are you suggest to use a socket solution for this application?

If it’s a common database, and not a separate one per player, then using web requests and handling the actual database access via PHP/Python/etc might be the best route.

For that, i must use the WWW class?

Either WWW (which offers most if not all you need as you can provide the data input for webservice request and the www.text contains the answer from the webservice) or writting the request handling yourself basing on TCPSockets from System.Net (requires the corresponding Pro licenses to use System.Net on Android / iOS where as WWW works without)