becuase in the pics dir there are pictures according to username, but each have a different extenstion. I know I can do this by create a big long if statement, but I have 100+ pics in that dir. Is there some sorta function that gets the extenstion?
please help.
all I have is this
Code: Select all
<?PHP
echo "<img src="pics/$username.(inscert extenstion)" alt="$username" />";
?>