title: connection to mysql database using config.php file not working
body: <p>I have a php file that looks like this:   </p>
  
  <pre><code>&lt;?php
      include("config.php"); // put the *FULL* path to the file.
  
      $values = $_POST;
  
      foreach ($values as &amp;$value) {
          $value = mysql_real_escape_string($value);
      }
  
      $sq1="INSERT INTO applicant (app_trn,app_file_id)
  
      VALUES
      ('$values[app_trn]','$values[app_file_id]')";
  
      ?&gt;
  </code></pre>
  
  <p>and this Is my config.php file:</p>
  
  <pre><code>&lt;?php
  $link = mysql_connect('localhost', 'root', 'password');
  if (!$link) {
      die('Could not connect: ' . mysql_error());
  }
  mysql_select_db('lms', $link);
  ?&gt;
  </code></pre>
  
  <p>How ever when It is not working I cant seem to find the problem, Im a bit fresh to php and mysql so could you please oversea this and see if i have any errors</p>