title: Using PHP if and else statements to search multiple values in table
body: <p>I am trying to get the following to happen: </p>
  
  <p>if "field_ListingID" = h100 then show div x </p>
  
  <p>or if "field_ListingID" = h200 then show same div x </p>
  
  <p>Basically, within the same table1, I have 2 values "h100 "&amp; "h200". I am able to pull just one value fine, but how do I pull if red or if blue.</p>
  
  <p>Here is the code I have currently that is working for just one value. I tried placing the same php code for "h100" under the else statement, but that generated errors: </p>
  
  <pre><code>&lt;?php if ($row["field_ListingID"]=="h100"){ ?&gt;
        &lt;div class="featured-property"&gt;
        &lt;a href="#"&gt;
        &lt;div class="inner-logo"&gt;&lt;img src="images/inner-logo.png" alt="LOGO" width="136" height="41" /&gt;&lt;/div&gt;
        &lt;div class="bg-txt"&gt;
        &lt;div class="star-icon"&gt;&lt;/div&gt;
        &lt;div class="txt"&gt;&lt;p&gt;Featured &lt;span&gt;Property&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;          
        &lt;/div&gt;
        &lt;/a&gt;
        &lt;/div&gt;
  
        &lt;?php } else { ?&gt;          
  
        &lt;div style="margin-top: 20px; min-height:55px;"&gt;&amp;nbsp;&lt;/div&gt;
        &lt;?php }?&gt;
  </code></pre>
  
  <p>Thanks.</p>