You can let your users upload a photo by an HTML form like this
<FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="10000">
Send this file: <INPUT NAME="userfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Send File">
</FORM>
In sample form above, the file input is called "userfile" so the uploaded temp filename will be in $username.
To store the file, [man]copy[/man] the uploaded file to your chosen image directory and store path/to/file.name in your database. This has two advantages
[list]
[]Its easy then to create <img source="path/to/file"> in your displayed page
[*]browsers can cache files but not images in a database field
[/list]
hth