Android ,connecting to a remote DB (MySql)
<p>I have a remote DB that sitting in a server.</p>

<p>I would like to know how i could connect to my remote DB and show the data into my android app.</p>

<p>I know that is a way with WebService or direct but i don't know more then that.</p>

<p>I will appreciate help and if possible example.</p>

<p>I have a script write in Php that sitting in the server that letting connect to the db</p>

<pre><code>$db = mysql_connect("localhost", "UserName", "Password") or die (mysql_error());  
 mysql_select_db("NameofDB",$db) or die (mysql_error());
</code></pre>

<p>Thanks for helping!!!</p>
