help with php AND condition
<p>Need help reworking this php code/logic. Right now, if I have no value for either column 'Duration' or 'Size', my html table is blank and I put a default value of <code>n/a</code>. </p>

<p>I want to change the logic to continue to handle that condition and give an <code>n/a</code> value, but also add the logic to read if BOTH are <code>n/a</code>, then set my column 'Status' value = 'In Progress'.</p>

<p>Somehow, my commented code isn't working right. Thanks.</p>

<pre><code>     foreach ($keys as $column){
        if (isset($row[$column])){
                if ($column == 'Server'){
                        echo '&lt;td&gt; &lt;a href="' . $server_array[$row[$column]] . '"&gt;' . $row[$column] . '&lt;/a&gt;&lt;/td&gt;';
                } elseif ($column == 'Status'){  
                        echo '&lt;td&gt; &lt;font color="' . $color_array[$row[$column]] . '"&gt;' . $row[$column] . '&lt;/font&gt;&lt;/td&gt;';
                } else {
                        echo '&lt;td&gt;' . $row[$column] . '&lt;/td&gt;';
                }
        } elseif ($column == 'Status') {
          echo '&lt;td&gt;&lt;font color="yellow"&gt; Review &lt;/font&gt;&lt;/td&gt;';
        } elseif ($column == 'Duration') {
          echo '&lt;td&gt; n/a &lt;/td&gt;';
        } elseif ($column == 'Size') {
          echo '&lt;td&gt; n/a &lt;/td&gt;';
        //} elseif ($column == 'Duration') &amp;&amp; ($column =='Size') {
        // echo '&lt;td&gt; In Progress &lt;/td&gt;';
        } else {
          echo '&lt;td&gt; &lt;/td&gt;';
        }
     }
</code></pre>
