You could try updating the query like this, not sure but you can try
php Code:
$query = sprintf("UPDATE `users` SET `picture` = '%s' WHERE `username` ='%s'", mysql_real_escape_string($file_name), mysql_real_escape_string($username));
Try printing the relevant portion of the db before and after the change to see if there is any difference whatsoever. Maybe set $blah = mysql_query($query); and verify $blah is okay?
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --