Greg,
This is the way I have done it:
IMAGE UPLOAD FORM
// Make sure you have the "enctype" set
<form action="insert_doc.php3" method="post" name="insert" enctype="multipart/form-data">
<input type="file" name="file">
// this will be the new filename when it is uploaded
<input type="text" name="newfilename">
</form>
UPLOAD TO DATABASE
mysql_query("INSERT INTO table_name VALUES('$newfilename')") or die (mysql_error());
copy($file, "upload_folder/$filename");
// make sure upload_folder is CHMOD 777
OUTPUT IMAGES
You could use str_replace to make it simple to add images:
$output = str_replace('[image1]', '<img src=\"$image1\">', $output);
where [image1] is what the user would put in their code and it would be replaced by <img src="image1.gif">
You will need to do some more work on this to get it working how you want it, but hopefully it will put you on the right tracks.
Mike
www.digitalegg.net