title: how to import .sql file in mysql databse with php
body: <p>I'm trying to import .sql file into mysql database using php but I can't</p>
  
  <p>Am using like this code:</p>
  
  <pre><code>&lt;?php
  
  $sql = mysqli_connect('localhost', 'root', '123123', '');
  mysqli_query($sql, "USE vmail");
  mysqli_query($sql, "source insert.sql");
  mysqli_close($sql);
  
  echo ("Done")
  
  
  ?&gt;
  </code></pre>
  
  <p>How can I import it??</p>
  
  <p>thnx.</p>