title: How do I display the value of a row?
body: <p><strong>I have five rows setup in a MySQLi database:</strong></p>
  
  <pre><code>$title, $subtitle, $owner, $contactemail, and $footer.
  </code></pre>
  
  <p>Instead of writing out my websites title on EVERY .php page, I would like to use a function that will <strong>display the value of $title, $subtitle</strong>, etc.</p>
  
  <p>This is what I have done so far:</p>
  
  <p><strong>index.php</strong></p>
  
  <pre><code>&lt;?php include 'config.php'; ?&gt;
  &lt;?echo $title;?&gt;
  </code></pre>
  
  <p><strong>config.php</strong></p>
  
  <pre><code>&lt;?php
  $mysql_hostname = 'localhost';
  $mysql_username = 'root';
  $mysql_dbname = 'toplist';
  $mysql_password = '';
  
  $dbh= new PDO("mysql:host=$mysql_hostname;dbname=$mysql_dbname", $mysql_username, $mysql_password);
  
  $query = "SELECT * FROM toplist_settings";
  
  $title=['title'];
  $subtitle=['subtitle'];
  $owner=['owner'];
  $contactemail=['contactemail'];
  $footer=['footer'];
  ?&gt;
  </code></pre>
  
  <p>But this is not working. When I use , etc. nothing shows up.</p>