I think he means something like this:
User A registers.
User A gets default avatar.
User A uploads new avatar.
User A displays new avatar.
User B registers.
User B gets default avatar.
User B displays default avatar.
Maybe?
Anyway, you can do a check to see if the custom avatar exists. Something like:
Code:
$avatar_url = '/path/to/avatar.png';
while($row = mysql_fetch_assoc($result))
{
if($row['avatar'] != 'default')
$avatar_url = $row['avatar'];
}
In the DB, `avatar` should be a VARCHAR long enough for your paths that defaults to 'default'.
If you need help with uploads, see this: http://tinyurl.com/n9ekn4