Setting variable and counting
<pre><code>$counter = "";
if($sWall&gt;1){
    $counter = $counter + $sWall;
}
if($sWC&gt;1){
    $counter = $counter + $sWC;
}
if($sOther&gt;1){
    $counter = $counter + $sOther;
}
if(!(empty($counter))){
    echo "(".$counter.") ";
}
</code></pre>

<p>This is what I have that does not work.
<code>$sOther</code>, <code>$sWC</code>, <code>$sWall</code> is <code>mysql_num_rows</code>.  I wish to echo out e.g (3) if you have 1 in <code>$sOther</code>, 1 in <code>$sWC</code> and 1 in <code>$sWall</code>.</p>

<p>How can I do that, what I did is just something I tried.</p>
