combining 2 if staments
<p>Jut a quick question, i have 2 if statements i want to combine into one.</p>

<p>These are the current if statements:</p>

<pre><code>if (empty($_POST['route']))
{
    $formerrors[] = '&lt;span class="error"&gt;route&lt;/span&gt;';
} else {
    $route = escape_data($_POST['route']);

}


if (mysql_num_rows($result) == 0)
{
    $formerrors[] = '&lt;span class="error"&gt;route&lt;/span&gt;';
} else {
    $route = escape_data($_POST['route']);

}
</code></pre>

<p>i need something like:</p>

<pre><code>if (empty($_POST['route'])) &amp; (mysql_num_rows($result) == 0)
{
    $formerrors[] = '&lt;span class="error"&gt;route&lt;/span&gt;';
} else {
    $route = escape_data($_POST['route']);

}
</code></pre>

<p>but not 100% sure how to achieve this</p>

<p>Thanks in advance</p>
