if(!empty) issues
<p>What is wrong with this? The code in the "if statement" runs if $forwardformat isn't empty empty, but the "else" code doesn't run if $forwardformat is empty. Any ideas?!</p>

<pre><code>while ($row = mysql_fetch_array($forwardresult)) {
    $forward = $row["id"];
    $forwardformat = str_replace(" ","",$forward);

    if (!empty($forwardformat)) {
        echo 'Exploring moves us &lt;a href="casestudy.php?id=';
        echo $forwardformat;
        echo '"&gt;forward&lt;/a&gt;';
    }
    else {
        echo "forward";
    }
}
</code></pre>
