Firstly, I agree with (and really like!) your solution. However, I am left a little confused by your explanation! Let me detail to you what I've understood and produced so far, and see if I have this correct:
1) I have created a new table called "images". I have then assumed that the following core fields would be required:-
"imgid" - Self-incrementing number, record identifier.
"thumbpath" - URL of the thumbnail of this image.
"fullpath" - URL of the full-sized image.
...other "nicety" fields such as size, description, author and source of photo would also be appropriate in the finished "product", but obviously not critical at the moment.
2) In my table for "articles", so far I have the following fields:-
"id" - Self-incrementing number, record identifier.
"title" - Name of article.
"author" - Writer of article.
"datetime" - Self-stamping date/time of record-creation.
"content" - The 'longblob' or 'longtext' field (not sure which works best!) for storing the HTML-tagged text of the article.
Now from here, I know that I need a PHP3 script to retrieve and display each record from the table. However, it gets hazy on exactly how I'm going to display the images.
Let's say the first record in the "articles" table has this short, simple piece of HTML in the "content":
<p>this is a test.</p>
<p><\imgid=123></p>
So far so good, but when the PHP script for querying "articles" returns a page, all I'm going to get are two lines of plain text, rather than a picture on the second line. How I am going to get the script to turn instances of <\imgid=???> from the table's "content" field into proper HTML <img> tags and then retrieve and display the correct image(s) from the "images" table? (Bearing in mind that there will be a varying amount of images on each different article, and their placement will differ occasionally as well).
FYI, I always pre-size my thumbnail images to the exact dimensions I require before putting them onto the website, so width and height commands would not be a factor, and the image border is, on any article or page, going to be "1".
Any chance of assistance with the PHP code for this please?!? I'm stuck! HELP!