title: error in sqlite database when loaded in php
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6261107/sqlite-database-path-not-working">SQLite database path not working</a>  </p>
  </blockquote>
  
  
  
  <pre><code>D:/wamp/www/umer.db
  Warning: sqlite_query() [function.sqlite-query]: no such table: config in
      D:\wamp\www\sqllite\index.php on line 15
  Error in query: SQL logic error or missing database
  </code></pre>
  
  <p>I found this error when loaded data base in PHP. My source code is this:</p>
  
  <pre><code>&lt;?php
      $db = $_SERVER['DOCUMENT_ROOT']."umer.db";  
      echo $db;
  
      $handle = sqlite_open($db) or
          die("Could not open database".sqlite_error_string(sqlite_last_error($handle)));
      $query = ("SELECT * FROM config");
  
      $result = sqlite_query($handle,$query) or
          die("Error in query: ".sqlite_error_string(sqlite_last_error($handle)));
      if (sqlite_num_rows($result) &gt; 0) {
          echo "&lt;table cellpadding=10 border=1&gt;";
          while($row = sqlite_fetch_array($result)) {
              echo "&lt;tr&gt;";
              echo "&lt;td&gt;".$row[0]."&lt;/td&gt;";
              echo "&lt;td&gt;".$row[1]."&lt;/td&gt;";
              echo "&lt;td&gt;".$row[2]."&lt;/td&gt;";
              echo "&lt;/tr&gt;";
          }
          echo "&lt;/table&gt;";
      }
      sqlite_close($handle);
  ?&gt;
  </code></pre>