title: Changing $_Post Search Results To Words Rather Than Category Number
body: <p>On my custom search results page I have a line that displays what category and price. The code I'm using is</p>
  
  <pre><code>Displaying results for &lt;?php echo $_POST['category_name']; ?&gt;
  </code></pre>
  
  <p>The output for this code is "Displaying results for 18120".</p>
  
  <p>I'm looking to display the word "Audio" rather than "18120", as well as about 10 other categories.</p>
  
  <p>My current attempt, shown below, is not working properly.</p>
  
  <pre><code>&lt;?php $cat = $_POST['category_name']; ?&gt;
  
  &lt;?php if ($cat == 18120) echo 'Audio';
    elseif ($cat == 18121) echo 'Television';
  ?&gt;
  </code></pre>