title: Capitalize the first word outputted from MySQL only
body: <p>I am looking to capitalize every letter of the first word that is presented by MySQL and PHP and keep the rest of the words lowercase. How could that be accomplished?</p>
  
  <p>It is stored in the database with only the first letter capitalized, so the real trick is to keep the rest of the words lowercase.</p>
  
  <p>Here is the code pulling the words from the database as of today:</p>
  
  <pre><code>&lt;?php
  
  $query0  = "SELECT LCASE(ord) FROM `keywords` ORDER BY RAND()";
  $result0 = mysql_query($query0);
  
  while($row0 = mysql_fetch_array($result0, MYSQL_ASSOC))
  {
  $keyword = $row0['LCASE(ord)'];
  
  echo "$keyword, ";
  
  }
  ?&gt;
  </code></pre>