$result = mysql_query("SELECT * FROM users WHERE username='darkshady'");
echo mysql_num_rows($result);
Assuming there is only one row in the table with username = darkshady then that would display one. What khaldryck said should explain it.
$var would have to be a mysql_query and then if that was in an IF statement, if there was more than 1 result then BLAH would happen.