title: Assign multiple PHP variables to MySQL values
body: <p>I'm doing a simple CMS for a website, it has been all done like this:</p>
  
  <h3>(config.php)</h3>
  
  <pre><code>&lt;?php
  $title= "My website title";
  $something= "Some text here";
  // There are around 300 other vars like that.
  // All text from the website comes from this file.
  ?&gt;
  </code></pre>
  
  <h3>(example.php)</h3>
  
  <pre><code>&lt;php require ('config.php'); ?&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;?php echo $title ?&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;p&gt;&lt;?php echo $something ?&gt;&lt;/p&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>But now I want to pass it to MySQL. I didn't do it at first because I was really noob at coding, but during the process of getting everything together, I felt ready to do it using a database and a admin panel.</p>
  
  <p>Assuming I already have a MySQLi connection established, how can make config.php variables pull his data from the database, instead of a static string?</p>
  
  <h3>How can I do that without overload the system with hundreds of queries per page load?</h3>