title: android application on a device connect to a php script
body: <p>my english is not that good so i will try to explain my problem:</p>
  
  <p>i have a group of .php files in a server (external webserver). i installed the android application on my tablet running android 3.2.1 and i need to:</p>
  
  <p>1) call a php file that do the conection to the db (mysql database)
  2) do some stuff on the db (always using the php files that do the work</p>
  
  <p>i have download the tutorial from <a href="http://download.androidhive.info/download.php" rel="nofollow">http://download.androidhive.info/download.php</a></p>
  
  <p>i have tried in all the ways to make it work for my case but without any result.</p>
  
  <p>maybe i'm just missing something...something really stupid (as always) that is making my connection fail. thansk in advance and i would love some advices (not just for the android java files but also for the php files)</p>
  
  <pre><code>&lt;?php
  
  /*
   * All database connection variables
   */
  
  define('DB_USER', ""); // db user
  define('DB_PASSWORD', ""); // db password (mention your db password here)
  define('DB_DATABASE', "androidhive"); // database name
  define('DB_SERVER', ""); // db server
  ?&gt;
  </code></pre>