title: PHP to access to a .db file
body: <p>I am new to PHP and trying to create a search field that searches through my database file. I am putting my database file rc3.db inside the same folder that contains my PHP file and trying to connect it with mysqlite, however I </p>
  
  <p>Tried  <code>$con = mysqli_connect("localhost:8888","user","password","rc3.db");</code> but errors,I don't have a user nor a password. Also tried <code>$con = mysqli_connect();</code> it works but I'm not sure if which database it is connecting to. I also did the single arguement with rc3.db as below, but it is probably mistaking that for the hostname, which is the the first parameter that the method takes in.</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;title&gt;PHP Test&lt;/title&gt;
   &lt;/head&gt;
   &lt;body&gt;
   &lt;?php echo '&lt;p&gt;Hello World&lt;/p&gt;'; ?&gt; 
   &lt;?php  
      //connection to the database
      $con = mysqli_connect("rc3.db");
      echo "Connected to MySQL&lt;br&gt;";
   ?&gt;
   &lt;/body&gt;
  &lt;/html&gt;
  
  
  Warning: mysqli_connect(): (HY000/2005): Unknown MySQL server host 'rc3.db' (22) in    /Applications/MAMP/htdocs/searchform.php on line 9
  Call Stack
  #   Time    Memory  Function    Location
  1   0.0005  229848  {main}( )   ../searchform.php:0
  2   0.0005  230072  mysqli_connect ( )  ../searchform.php:9
  </code></pre>