title: PHP unlink function
body: <p>This is the code </p>
  
  <pre><code>  $query = mysql_query("SELECT avatar FROM users WHERE UserID = ".$userID.""); 
          $row = mysql_fetch_array($query);
          $user_avatar = trim($row['avatar']);
  unlink($user_avatar);
  </code></pre>
  
  <p>but for some reason i get this error Warning:unlink();</p>
  
  <p>why $user_avatar returns empty ? and if i echo it shows t_cabbbccebbfhdb.jpg</p>