Check if mysql query found results PHP
<p>How do you check if it actually found results in a mysql query in php</p>

<p>for eg</p>

<pre><code>$usersearch=mysql_query("Select * FROM users WHERE username=$Searchboxinput");
if($usersearch==successfull){
//What happens when successfull
}
else{
//what happens when unsuccessfull
}
</code></pre>

<p>so if it found a user matching $searchboxinput it will do something and vice vera</p>
