title: Can't access the SQLite database with MAMP and PHP
body: <p>I have been learning how to program websites lately and the time has come for me to add a database.  I have in fact already successfully created a MySQL database and interacted with it with PHP.</p>
  
  <p>My problem is I can't seem to access a SQLite database file with it.  I am using MAMP to host locally for now.  Here is a snippet of the code I am using to access the db and find and print out a value stored on it.</p>
  
  <pre><code>&lt;?php
          $dbhandle = sqlite_open('/Applications/MAMP/db/sqlite/Users');
  
          if ($dbhandle == false) die ('Unable to open database');
  
          $dbquery = "SELECT * FROM usernames WHERE username=trevor";
          $dbresult = sqlite_query($dbhandle, $dbquery);
  
          echo sqlite_fetch_single($dbresult);
          sqlite_close($dbhandle);
  ?&gt;
  </code></pre>