PHP if with fetch from Mysql DB
<p>I can't get my head around why this wont work..</p>

<pre><code>&lt;?
(connect info and select DB etc here)

$term = $_POST['term'];
$sql = mysql_query("select * from evansu where username like '%$term%'");
 if ($row==$term)
    {
while ($row = mysql_fetch_array($sql))

      echo 'ID: '.$row['ID'];
    echo '&lt;br/&gt; First Name: '.$row['username'];
    echo '&lt;br/&gt; Last Name: '.$row['name'];
    echo '&lt;br/&gt; Phone: '.$row['Phone'];
    echo '&lt;br/&gt;&lt;br/&gt;';
}

else
  echo "Nothing found, have a nice day!";
</code></pre>

<p>?></p>

<p>It says nothing found even if the value is in the DB, and if I remove the if code it works and shows the info. Help?</p>
