php if condition
<p>I can't find anything wrong with this... This should work right?</p>

<pre><code>function ConfirmedNumber()
{
$rs = mysql_query("CALL ConfirmedNumber('" , $_SESSION['UserID'] . "',@Active)");
    while ($row = mysql_fetch_assoc($rs))
    {
        if ($row['Active'] = 1)
        {
        return true;
        }
    }
return false;
}
</code></pre>

<p>Assuming the Stored procedure returns a single row with the value '1' in it then I can call the function like this right?</p>

<pre><code>if (ConfirmedNumber())
{
//do some stuff.
}
</code></pre>
