I'm trying to echo an image from a folder called avatar_50x50, with the name of the file being the username. Although the extension will always be an image, how will I determine what file type it is?
<img src="../images/users/avatar_50x50/<?php echo $sel_user['username']; ?>"