title: Notice: Object of class stdClass could not be converted to int
body: <p>problem is "Object of class stdClass could not be converted to int"</p>
  
  <p>this is code:</p>
  
  <pre><code>$user = mysql_fetch_object(mysql_query("SELECT * FROM `user` WHERE username='$user_name'"));
  if($user) == 0){
  </code></pre>
  
  <p>how can I solve this problem?</p>